newbie question: how to get directory of script?
Godefroid Chapelle
gotcha at swing.be
Wed Nov 13 03:25:08 EST 2002
More information about the Python-list mailing list
Wed Nov 13 03:25:08 EST 2002
- Previous message (by thread): newbie question: how to get directory of script?
- Next message (by thread): newbie question: how to get directory of script?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I want to be able to get the path of the script I am running (the idea > is that I might have a data file or an ini file sitting in the same > directory as the py file). Try the following : import os.path the_module_path, the_module_file = os.path.split(the_module.__file__)
- Previous message (by thread): newbie question: how to get directory of script?
- Next message (by thread): newbie question: how to get directory of script?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list