mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
add assert and warning for python version
This commit is contained in:
parent
3746d26832
commit
78958b1795
|
|
@ -16,6 +16,11 @@
|
||||||
"""
|
"""
|
||||||
# pylint: disable=wrong-import-position
|
# pylint: disable=wrong-import-position
|
||||||
# pylint: disable=wrong-import-order
|
# pylint: disable=wrong-import-order
|
||||||
|
|
||||||
|
import sys
|
||||||
|
major_version = sys.version_info.major
|
||||||
|
assert major_version >= 3, "please use python3 to run BosWatch 3"
|
||||||
|
|
||||||
from boswatch.utils import paths
|
from boswatch.utils import paths
|
||||||
|
|
||||||
if not paths.makeDirIfNotExist(paths.LOG_PATH):
|
if not paths.makeDirIfNotExist(paths.LOG_PATH):
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,11 @@
|
||||||
"""
|
"""
|
||||||
# pylint: disable=wrong-import-position
|
# pylint: disable=wrong-import-position
|
||||||
# pylint: disable=wrong-import-order
|
# pylint: disable=wrong-import-order
|
||||||
|
|
||||||
|
import sys
|
||||||
|
major_version = sys.version_info.major
|
||||||
|
assert major_version >= 3, "please use python3 to run BosWatch 3"
|
||||||
|
|
||||||
from boswatch.utils import paths
|
from boswatch.utils import paths
|
||||||
|
|
||||||
if not paths.makeDirIfNotExist(paths.LOG_PATH):
|
if not paths.makeDirIfNotExist(paths.LOG_PATH):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue