From 7ac0b02da3e37a5a8a1fa8e47690538ee1538db1 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 5 May 2012 10:57:49 +0200 Subject: [PATCH] Use db_path variable --- couchpotato/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/runner.py b/couchpotato/runner.py index 895e87c2..8e7526f2 100644 --- a/couchpotato/runner.py +++ b/couchpotato/runner.py @@ -160,7 +160,7 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En # Load migrations initialize = True db = Env.get('db_path') - if os.path.isfile(db.replace('sqlite:///', '')): + if os.path.isfile(db_path): initialize = False from migrate.versioning.api import version_control, db_version, version, upgrade