mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-08 21:53:36 +00:00
Fix setting GamPath in Windows (better solution)
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user