From a833b2f5cc9f272e20131e1ebce1782441a1119b Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Wed, 29 Jan 2014 21:45:43 +0400 Subject: [PATCH] Revert change to pyfa path. Customization is provided via configforced.py module --- config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 611509be2..e89434a81 100644 --- a/config.py +++ b/config.py @@ -34,7 +34,7 @@ def defPaths(): global saveInRoot # The main pyfa directory which contains run.py # Python 2.X uses ANSI by default, so we need to convert the character encoding - pyfaPath = getattr(configforced, "pyfaPath", None) + pyfaPath = getattr(configforced, "pyfaPath", pyfaPath) if pyfaPath is None: pyfaPath = unicode(os.path.dirname(os.path.realpath(os.path.abspath( sys.modules['__main__'].__file__))), sys.getfilesystemencoding()) @@ -45,7 +45,7 @@ def defPaths(): if savePath is None: savePath = os.path.join(pyfaPath, "saveddata") else: - savePath = getattr(configforced, "savePath", savePath) + savePath = getattr(configforced, "savePath", None) if savePath is None: savePath = unicode(os.path.expanduser(os.path.join("~", ".pyfa")), sys.getfilesystemencoding())