From ab17c6d3c47f63cb2ac18d49723da392abde07c7 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sat, 18 Dec 2010 01:13:17 +0300 Subject: [PATCH] Now replace it with both more sane & the thing which actually works --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index c13aa9c35..8a47461c5 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.dirname(os.path.abspath(sys.modules['__main__'].__file__)), sys.getfilesystemencoding()) # Where we store the saved fits etc, default is the current users home directory