From 7e2f20414164223b643881c7052b54bb9e42f0e8 Mon Sep 17 00:00:00 2001 From: Ross Mountjoy Date: Fri, 20 Mar 2020 18:15:17 -0400 Subject: [PATCH] fixed wsgi.py to match run.py --- wsgi.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wsgi.py b/wsgi.py index b07021d..749fa3a 100755 --- a/wsgi.py +++ b/wsgi.py @@ -1,5 +1,14 @@ #!/usr/bin/env python3 +import os + +root_folder = os.path.dirname(__file__) +db_file_path = os.path.join(root_folder, "dashmachine", "user_data", "site.db") +try: + os.remove(db_file_path) +except FileNotFoundError: + pass + from dashmachine import app from dashmachine.main.utils import dashmachine_init