Let users execute but not view
Raghav Lagisetty
lvrk at yahoo.com
Sun Jan 4 19:00:03 EST 2004
Hi Florian,
Check this link from Python's programming FAQ to create compiled
code from .py files:
http://www.python.org/doc/faq/programming.html#how-do-i-create-a-pyc-file
The "dis" module can be used to disassemble and examine this byte
code. But
creating a .pyc file should suffice your requirements.
-Raghav.
Florian Lindner <Florian.Lindner at xgm.de> wrote in message news:<bt9o11$7rq$05$1 at news.t-online.com>...
> Hi!
> I have a python script which should be executed my normal users but they
> should not be able to view the sourcecode. Setting permissions to x only
> does not help, the python interpreter can not read the file.
> How can I do that?
> Thanks,
> Florian
More information about the Python-list
mailing list