[Tutor] A few Questions

Adam Cripps kabads at gmail.com
Sat Sep 4 13:39:24 CEST 2004

On Sat, 4 Sep 2004 11:13:17 +0100, Alan Gauld
<alan.gauld at blueyonder.co.uk> wrote:
> >  1.What command makes the python programme print out the file it is
> in?
> The sys.argv[0] value should be the name of the python script.
> I don't think it provides the full path however.
> And what happens if you use py2exe I have no idea.

I'm pretty sure that it does show the whole path on Windows - not sure
for *nix. I used this a few days ago and remembered that I didn't need
to use [0].



proj: http://jiletters.sf.net
site: http://www.monkeez.org
wiki: http://wiki.monkeez.org

More information about the Tutor mailing list