[platform] explicit version check in command line launcher

Inspired by a discussion at https://github.com/JetBrains/intellij-community/commit/9787d8356ff39cb3c7ee4d023cae42c65eaf5c0d
This commit is contained in:
Roman Shevchenko
2016-11-30 15:04:48 +01:00
parent 34f91c47bc
commit 74458aa5f5
@@ -13,6 +13,10 @@ RUN_PATH = u'$RUN_PATH$'
CONFIG_PATH = u'$CONFIG_PATH$'
SYSTEM_PATH = u'$SYSTEM_PATH$'
if sys.version_info[0] * 10 + sys.version_info[1] < 27:
print('error: Python 2.7 or newer is required')
exit(1)
def print_usage(cmd):
print(('Usage:\n' +