Check to see if the script has been previously used?

2014-05-27 Thread KC Sparks
Hi, I was wondering if there was an extension or way that would allow me to print instructions if it is the first the the user has used the script. Thanks, KC -- https://mail.python.org/mailman/listinfo/python-list

Re: Check to see if the script has been previously used?

2014-05-27 Thread Chris Angelico
On Tue, May 27, 2014 at 5:45 PM, KC Sparks kcrspa...@gmail.com wrote: I was wondering if there was an extension or way that would allow me to print instructions if it is the first the the user has used the script. The trickiest part is defining the 'user'. Generally, this sort of thing is done

Re: Check to see if the script has been previously used?

2014-05-27 Thread Dave Angel
Chris Angelico ros...@gmail.com Wrote in message: On Tue, May 27, 2014 at 5:45 PM, KC Sparks kcrspa...@gmail.com wrote: I was wondering if there was an extension or way that would allow me to print instructions if it is the first the the user has used the script. The trickiest part is

Re: Check to see if the script has been previously used?

2014-05-27 Thread Chris Angelico
On Tue, May 27, 2014 at 9:05 PM, Dave Angel da...@davea.name wrote: Preferred approach is usually to respond to one of the conventional argv switches. And let the user decide. Yes, this is a technique I've used when doing up important (and dangerous) MUD commands. The command will be