mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
require Python 2.7
This commit is contained in:
@@ -11242,6 +11242,8 @@ def win32_unicode_argv():
|
|||||||
# Run from command line
|
# Run from command line
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
reload(sys)
|
reload(sys)
|
||||||
|
if sys.version_info[:2] != (2, 7):
|
||||||
|
sys.exit(5)
|
||||||
if hasattr(sys, u'setdefaultencoding'):
|
if hasattr(sys, u'setdefaultencoding'):
|
||||||
sys.setdefaultencoding(u'UTF-8')
|
sys.setdefaultencoding(u'UTF-8')
|
||||||
if GM_Globals[GM_WINDOWS]:
|
if GM_Globals[GM_WINDOWS]:
|
||||||
|
|||||||
Reference in New Issue
Block a user