From bfd69470d38a13bf3ef58d4ce08dd8d7565591f6 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sat, 18 Dec 2010 00:56:04 +0300 Subject: [PATCH] Replace reliance on current working dir with something more sane, although it doesn't work for some cases --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index c13aa9c35..e4aa3692f 100644 --- a/config.py +++ b/config.py @@ -8,7 +8,7 @@ debug = False # 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__)), +pyfaPath = unicode(os.path.abspath(sys.modules['__main__'].__file__), sys.getfilesystemencoding()) # Where we store the saved fits etc, default is the current users home directory