0

working versions, data files, and package metadata

This commit is contained in:
Aaron Griffith
2011-05-13 22:24:49 -04:00
parent e84ef2c1d2
commit 4ec1b4c971
7 changed files with 45 additions and 32 deletions

View File

@@ -27,9 +27,9 @@ def get_program_path():
return os.path.dirname(sys.executable)
else:
try:
# normally, we're in ./overviewer/util.py
# we want ./overviewer/data/
return os.path.join(os.path.dirname(__file__), 'data')
# normally, we're in ./overviewer_core/util.py
# we want ./
return os.path.dirname(os.path.dirname(__file__))
except NameError:
return os.path.dirname(sys.argv[0])