Technical Answer - Protecting code in python
Thomas Heller
theller at ctypes.org
Thu Mar 22 13:10:00 EDT 2007
Bart Willems schrieb:
> Aaah, *now* we're getting somewhere... :-)
>
>>> All he wants is something that turns 'readable,
>>> changeable python' into 'unreadable, immutable python'.
>>
>> chown scriptuser script.py # a unique user
>> chmod a-rwx script.py
>> chmod u+rx script.py
>>
>> I believe that fully meets the functional requirements. Where shall I send
>> the invoice?
>
> If it works on the target machine - I am under the assumption that the
> client is some kind of government office - more likely to run Windows
> than it is to run unix/linux/etc.
>
> Who has a similar solution for windows?
python -m py_compile script.py
del script.py
Thomas
More information about the Python-list
mailing list