This commit is contained in:
Simon Beginn 2021-10-17 11:56:28 +02:00
parent 74850b8b63
commit b00e743eaf
No known key found for this signature in database
GPG key ID: 033A4D4CE4E063D6

View file

@ -25,7 +25,7 @@ for (arg, env) in argumentVariableMapping.items():
command.append(arg)
command.append(os.environ.get(env))
enableSQLITE = os.environ.get('SQLITE').lower() == 'true'
enableSQLITE = os.environ.get('SQLITE') != None and os.environ.get('SQLITE').lower() == 'true'
os.makedirs('db', exist_ok=True)
dbPath = os.path.join('db', 'pykms_database.db')
if enableSQLITE: