Fix setting GamPath in Windows

This commit is contained in:
Ross Scroggs
2016-02-26 16:47:08 -08:00
parent f27df74339
commit 8f283acf66

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__)),
GM_GAM_PATH: os.path.dirname(os.path.realpath(__file__)) if os.name != u'nt' 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,