Re: [Tutor] python function to know the path of the program in execution *

2010-02-05 Thread Spoorthi
that the script directory is inserted before the entries inserted as a result of PYTHONPATH.* On Fri, Feb 5, 2010 at 5:38 PM, Rohit Roger$ wrote: > > sys.path[0] returns none > > > > On Fri, Feb 5, 2010 at 5:36 PM, Spoorthi wrote: > >> sys.path[0] should be serving the

Re: [Tutor] python function to know the path of the program in execution *

2010-02-05 Thread Spoorthi
ilman/listinfo/tutor >> >> >> I think this is what you want: >> >> >>> import sys >> >>> sys.argv[0] >> 'C:\\Python26\\testingscripts\\lowdir.py' >> >>> >> >> David >> >> >> >> ___