Fix setting GamPath in Windows (better solution)

This commit is contained in:
Ross Scroggs
2016-02-26 17:00:46 -08:00
parent 8f283acf66
commit 18420275af

View File

@ -108,7 +108,7 @@ GM_MAP_USER_ID_TO_NAME = u'ui2n'
#
GM_Globals = {
GM_SYSEXITRC: 0,
GM_GAM_PATH: os.path.dirname(os.path.realpath(__file__)) if os.name != u'nt' else os.path.dirname(sys.executable),
GM_GAM_PATH: os.path.dirname(os.path.realpath(__file__)) if not getattr(sys, u'frozen', False) else os.path.dirname(sys.executable),
GM_WINDOWS: os.name == u'nt',
GM_SYS_ENCODING: sys.getfilesystemencoding() if os.name == u'nt' else u'utf-8',
GM_BATCH_QUEUE: None,