Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/checkenv.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author = EASY
import platform
import sys
import os
import time
import requests
Expand All @@ -11,16 +11,16 @@

class CheckEnv:
def __init__(self):
self.pyVersion = platform.python_version()
self.pyVersion = sys.version_info
self.path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
self.python_check()
self.path_check()
if FingerPrint_Update:
self.update()

def python_check(self):
if self.pyVersion < "3.6":
logging.error("此Python版本 ('{0}') 不兼容,成功运行程序你必须使用版本 >= 3.6 (访问 ‘https://www.python.org/downloads/".format(self.pyVersion))
if self.pyVersion < (3, 6):
logging.error("此Python版本 ('{0}') 不兼容,成功运行程序你必须使用版本 >= 3.6 (访问 ‘https://www.python.org/downloads/".format(self.pyVersion[0]+'.'+self.pyVersion[1]+'.'+self.pyVersion[2]))
exit(0)

def path_check(self):
Expand Down