freemt commited on
Commit
66b6c9c
·
1 Parent(s): 0c43ee3

Update assert python 3.8

Browse files
Files changed (2) hide show
  1. app.py +4 -0
  2. litbee/app.py +4 -0
app.py CHANGED
@@ -76,6 +76,10 @@ from litbee.utils import menu_items
76
 
77
  # from ezbee import ezbee
78
 
 
 
 
 
79
  os.environ["TZ"] = "Asia/Shanghai"
80
  time.tzset()
81
  os.environ["LOGLEVEL"] = "10" # uncomment this in dev
 
76
 
77
  # from ezbee import ezbee
78
 
79
+ curr_py = sys.version[:3]
80
+ msg = f"Some packages litbee depends on can only run with Python 3.8, current python is {curr_py}, sorry..."
81
+ assert == "3.8", msg
82
+
83
  os.environ["TZ"] = "Asia/Shanghai"
84
  time.tzset()
85
  os.environ["LOGLEVEL"] = "10" # uncomment this in dev
litbee/app.py CHANGED
@@ -76,6 +76,10 @@ from litbee.utils import menu_items
76
 
77
  # from ezbee import ezbee
78
 
 
 
 
 
79
  os.environ["TZ"] = "Asia/Shanghai"
80
  time.tzset()
81
  os.environ["LOGLEVEL"] = "10" # uncomment this in dev
 
76
 
77
  # from ezbee import ezbee
78
 
79
+ curr_py = sys.version[:3]
80
+ msg = f"Some packages litbee depends on can only run with Python 3.8, current python is {curr_py}, sorry..."
81
+ assert == "3.8", msg
82
+
83
  os.environ["TZ"] = "Asia/Shanghai"
84
  time.tzset()
85
  os.environ["LOGLEVEL"] = "10" # uncomment this in dev