"Paul Moore" <paul.moore at uk.origin-it.com> wrote in message news:FpmjOjvwe5bm0Bg09LDTMPhh5vji at 4ax.com... [snip] > --- a.py --- > import sys > print sys.argv[0] > --- > > python a.py > > just prints "a.py". Is there a way of getting the *full* script name. import sys, os.path print os.path.abspath(sys.argv[0]) Alex