From bc10b2edd6d21e41ca977551e4c330ac64d9d0fd Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 15 Dec 2010 18:50:44 +0300 Subject: [PATCH] Now pyfa should launch if user account name contains non-ASCII symbols --- config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index db9149798..1f7e9f898 100644 --- a/config.py +++ b/config.py @@ -9,10 +9,11 @@ debug = True # The main pyfa directory which contains run.py # python 2.X uses ansi by default, so we need to convert the character encoding :( pyfaPath = unicode(os.path.join(os.getcwd(), os.path.dirname(sys.modules['__main__'].__file__)), - sys.getfilesystemencoding()) + sys.getfilesystemencoding()) # Where we store the saved fits etc, default is the current users home directory -savePath = os.path.expanduser(os.path.join("~", ".pyfa")) +savePath = unicode(os.path.expanduser(os.path.join("~", ".pyfa")), + sys.getfilesystemencoding()) # Static EVE Data from the staticdata repository, should be in the staticdata directory in our pyfa directory staticPath = os.path.join(pyfaPath, "staticdata")