Finding startup files

jeff elkins jeffelkins at earthlink.net
Wed May 11 08:42:23 EDT 2005


On Wednesday 11 May 2005 04:32 pm, hemagician at gmail.com wrote:
> The following script demonstrates a method that should work for you. I
> believe it is entirely cross-platform.
>
> #! /usr/bin/python
>
> import sys
> import os
>
> print os.path.abspath(os.path.dirname(sys.argv[0]))

Works perfectly, thanks much!

Jeff




More information about the Python-list mailing list