mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-05-03 09:33:03 +00:00
Change runtime checks for Python version
This commit is contained in:
parent
c93aafc9af
commit
f050fc7e00
@ -235,9 +235,9 @@ def run():
|
|||||||
return
|
return
|
||||||
log.info("HTTP authentication is enabled with username '{}'".format(user))
|
log.info("HTTP authentication is enabled with username '{}'".format(user))
|
||||||
|
|
||||||
# we only support Python 3 version >= 3.6
|
# we only support Python 3 version >= 3.7
|
||||||
if sys.version_info < (3, 6, 0):
|
if sys.version_info < (3, 7, 0):
|
||||||
raise SystemExit("Python 3.6 or higher is required")
|
raise SystemExit("Python 3.7 or higher is required")
|
||||||
|
|
||||||
user_log.info("Running with Python {major}.{minor}.{micro} and has PID {pid}".format(major=sys.version_info[0], minor=sys.version_info[1],
|
user_log.info("Running with Python {major}.{minor}.{micro} and has PID {pid}".format(major=sys.version_info[0], minor=sys.version_info[1],
|
||||||
micro=sys.version_info[2], pid=os.getpid()))
|
micro=sys.version_info[2], pid=os.getpid()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user