Gate usage on minimum supported Python version (#912)

3.7 is recommended, but 3.5 should be currently supported
This commit is contained in:
ejochman
2019-05-03 14:59:51 -07:00
committed by Jay Lee
parent 1046716304
commit 004b51f3cd

View File

@@ -14237,6 +14237,6 @@ def ProcessGAMCommand(args):
if __name__ == "__main__":
if sys.platform.startswith('win'):
freeze_support()
if sys.version_info[0] < 3 or sys.version_info[1] < 7:
systemErrorExit(5, 'GAM requires Python 3.7 or newer. You are running %s.%s.%s. Please upgrade your Python version or use one of the binary GAM downloads.' % sys.version_info[:3])
if sys.version_info[0] < 3 or sys.version_info[1] < 5:
systemErrorExit(5, 'GAM requires Python 3.5 or newer. You are running %s.%s.%s. Please upgrade your Python version or use one of the binary GAM downloads.' % sys.version_info[:3])
sys.exit(ProcessGAMCommand(sys.argv))