[Tutor] Getting the directory the program is in

Tor Hildrum torhildrum at gmail.com
Mon Dec 11 22:37:39 CET 2006


On 12/11/06, Jordan Greenberg <greenbergj at wit.edu> wrote:
> Tor Hildrum wrote:
> > The full pathname is in sys.argv[0]
> At least on my system, it only includes the filename if executed from
> the current directory.

Hm, yeah, I thought the full path was standard behavior but I see it's not.

I need to go change some code :)


More information about the Tutor mailing list