Check for python3.6 or higher
This commit is contained in:
parent
c345ed214d
commit
2110329934
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,11 @@
|
||||||
|
import sys
|
||||||
|
|
||||||
|
# Check for python3.6 or newer to resolve erroneous typing.NamedTuple issues
|
||||||
|
if sys.version_info < (3, 6):
|
||||||
|
exit('Varken requires python3.6 or newer')
|
||||||
|
|
||||||
import schedule
|
import schedule
|
||||||
import threading
|
import threading
|
||||||
import sys
|
|
||||||
import platform
|
import platform
|
||||||
import distro
|
import distro
|
||||||
|
|
||||||
|
@ -20,6 +25,7 @@ from varken.varkenlogger import VarkenLogger
|
||||||
|
|
||||||
PLATFORM_LINUX_DISTRO = ' '.join(x for x in distro.linux_distribution() if x)
|
PLATFORM_LINUX_DISTRO = ' '.join(x for x in distro.linux_distribution() if x)
|
||||||
|
|
||||||
|
|
||||||
def threaded(job):
|
def threaded(job):
|
||||||
thread = threading.Thread(target=job)
|
thread = threading.Thread(target=job)
|
||||||
thread.start()
|
thread.start()
|
||||||
|
@ -57,7 +63,6 @@ if __name__ == "__main__":
|
||||||
))
|
))
|
||||||
vl.logger.info(u"Python {}".format(sys.version))
|
vl.logger.info(u"Python {}".format(sys.version))
|
||||||
|
|
||||||
|
|
||||||
CONFIG = INIParser(DATA_FOLDER)
|
CONFIG = INIParser(DATA_FOLDER)
|
||||||
DBMANAGER = DBManager(CONFIG.influx_server)
|
DBMANAGER = DBManager(CONFIG.influx_server)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue