Prevent Modification of Script?
Alex Martelli
aleax at mac.com
Wed Apr 4 23:07:06 EDT 2007
Ben Finney <bignose+hates-spam at benfinney.id.au> wrote:
> "ts-dev" <time.swift at gmail.com> writes:
>
> > Is it possible to prevent modification of a python file once its been
> > deployed?
>
> Prevent modification by whom?
>
> You can't prevent modification by the person who owns the
> machine. It's in their possession, and presumably it's out of yours;
> they can do whatever they like.
Hmmm -- if the file is deployed on read-only media it might be possible
to prevent modification. Of course, one could COPY it to read-write
media, and modify the copy, but that would still entirely satisfy the
requirement of "preventing modification of the file" as stated.
Alex
More information about the Python-list
mailing list