From be3d5a9d4a2165b0670b0e5121b0143e9e0a4c81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Sat, 21 Oct 2017 20:02:25 -0400 Subject: [PATCH] Test --- init_db.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init_db.py b/init_db.py index 4c5446dc8..7e8ad28a9 100644 --- a/init_db.py +++ b/init_db.py @@ -2,15 +2,15 @@ import os import sqlite3 # Check if database exist -if os.path.exists(os.path.join(os.path.dirname(__file__), '/data/db/bazarr.db')) == True: +if os.path.exists(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db')) == True: pass else: # Get SQL script from file - fd = open(os.path.join(os.path.dirname(__file__), '/create_db.sql'), 'r') + fd = open(os.path.join(os.path.dirname(__file__), 'create_db.sql'), 'r') script = fd.read() # Open database connection - db = sqlite3.connect(os.path.join(os.path.dirname(__file__), '/data/db/bazarr.db')) + db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db')) c = db.cursor() # Execute script and commit change to database