Check for python3.6 or higher

This commit is contained in:
Nicholas St. Germain 2018-12-07 01:55:16 -06:00
parent c345ed214d
commit 2110329934

View file

@ -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 threading
import sys
import platform
import distro
@ -20,6 +25,7 @@ from varken.varkenlogger import VarkenLogger
PLATFORM_LINUX_DISTRO = ' '.join(x for x in distro.linux_distribution() if x)
def threaded(job):
thread = threading.Thread(target=job)
thread.start()
@ -57,7 +63,6 @@ if __name__ == "__main__":
))
vl.logger.info(u"Python {}".format(sys.version))
CONFIG = INIParser(DATA_FOLDER)
DBMANAGER = DBManager(CONFIG.influx_server)