Excute script only from another file

Larry Hudson orgnut at yahoo.com
Tue Nov 26 03:10:37 EST 2013


On 11/24/2013 07:20 PM, Dave Angel wrote:

> Are you really trying to protect against yourself accidentally invoking it or someone
> maliciously doing it?
> I would probably give scrpt2 an obnoxious name like htrerttcdrrthyyh.py or put it in an obscure
> directory. But if you explain the rationale we might come up with something better.
>
> How about naming it dontrunme.py ?
>

Totally different subject of course, but this reminds me of an editor I used many years ago 
(probably with CP/M) that used "delete.me" as its default filename.  I don't remember for sure 
now, but I think it was an editor called Mince (Mince Is Not Complete EMACS).

      -=- Larry -=-




More information about the Python-list mailing list