mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-05 14:25:45 +00:00
add assert and warning for python version
This commit is contained in:
parent
3746d26832
commit
78958b1795
2 changed files with 10 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue