mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-01-09 10:09:57 +01:00
Merge pull request #25 from janspeller/fork/feature/warning_python2
add assert and warning for python version
This commit is contained in:
commit
f19f826f4d
|
|
@ -16,6 +16,11 @@
|
|||
"""
|
||||
# pylint: disable=wrong-import-position
|
||||
# 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
|
||||
|
||||
if not paths.makeDirIfNotExist(paths.LOG_PATH):
|
||||
|
|
|
|||
|
|
@ -16,6 +16,11 @@
|
|||
"""
|
||||
# pylint: disable=wrong-import-position
|
||||
# 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
|
||||
|
||||
if not paths.makeDirIfNotExist(paths.LOG_PATH):
|
||||
|
|
|
|||
Loading…
Reference in a new issue