mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
@@ -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' +
|
||||
|
||||
Reference in New Issue
Block a user