Revert "Fix config pyfaPath handling"

This reverts commit b082a6acec.
This commit is contained in:
DarkPhoenix
2011-01-22 16:17:09 +03:00
parent b082a6acec
commit 891d1125ce

View File

@@ -14,8 +14,7 @@ expansionVersion = "1.1.0"
# The main pyfa directory which contains run.py
# Python 2.X uses ANSI by default, so we need to convert the character encoding
if hasattr(sys.modules['__main__'], '__file__'):
pyfaPath = unicode(os.path.dirname(os.path.abspath(sys.modules['__main__'].__file__)), sys.getfilesystemencoding())
pyfaPath = unicode(os.path.dirname(os.path.abspath(sys.modules['__main__'].__file__)), sys.getfilesystemencoding())
# Where we store the saved fits etc, default is the current users home directory
savePath = unicode(os.path.expanduser(os.path.join("~", ".pyfa")), sys.getfilesystemencoding())