Hiding modules
Tommy Trojan
hauck at gseos.com
Sat Feb 14 22:39:10 EST 2004
More information about the Python-list mailing list
Sat Feb 14 22:39:10 EST 2004
- Previous message (by thread): Hiding modules
- Next message (by thread): Hiding modules
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, I have a custom application in which I have a Python interpreter embedded. Everything works really well and Python is taking over bigger and bigger chunks of the hosting application (it's spreading like a cancer :-). My users have direct access to the interpreter through a console window. So they can run pretty much any code they like. Now I have some modules that I use in my code and that I don't want my users to access. Is there anything that can be done to import modules conditionally? I guess I could just check for import statements or write an __import__ hook, however, I want my code still to be able to access the modules in question. Any ideas? Thanks, T
- Previous message (by thread): Hiding modules
- Next message (by thread): Hiding modules
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list