diff --git a/simple_app/tests/test_utils.py b/simple_app/tests/test_utils.py index 16ca18d..116c3d6 100644 --- a/simple_app/tests/test_utils.py +++ b/simple_app/tests/test_utils.py @@ -10,7 +10,7 @@ # local packages from ..utils import * -db_name = 'simple_root/temp.db' +db_name = 'temp.db' db_cs = f'sqlite:///{db_name}' @@ -18,7 +18,7 @@ def db(): if os.path.exists(db_name): os.remove(db_name) - copy('simple_root/SIMPLE.db', db_name) + copy('SIMPLE.db', db_name) assert os.path.exists(db_name) # Connect to the new database and confirm it has the Sources table db = SimpleDB(db_cs) diff --git a/simple_app/utils.py b/simple_app/utils.py index 4f99697..67ca239 100644 --- a/simple_app/utils.py +++ b/simple_app/utils.py @@ -19,7 +19,7 @@ def sysargs(): _args.add_argument('-p', '--port', default=8000, help='Local port number to host server through, default 8000', type=int) _args.add_argument('-d', '--debug', help='Run Flask in debug mode?', default=False, action='store_true') - _args.add_argument('-f', '--file', default='simple_root/SIMPLE.db', + _args.add_argument('-f', '--file', default='SIMPLE.db', help='Database file path relative to current directory, default SIMPLE.db') _args = _args.parse_args() return _args @@ -229,7 +229,7 @@ class JSCallbacks: def __init__(self): jsfuncnames = ('dropdownx_js', 'dropdowny_js', 'button_flip', 'normslider', 'reset_slider') - with open('simple_root/simple_app/simple_callbacks.js', 'r') as fcall: + with open('simple_app/simple_callbacks.js', 'r') as fcall: whichvar = '' outstr = """""" for line in fcall: