> 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__)