Use absolute path

pull/26/head
Louis Vézina 7 years ago
parent 4a4a0fac62
commit 8149ee162c

@ -6,7 +6,7 @@ if os.path.exists(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'))
pass
else:
# Get SQL script from file
fd = open('create_db.sql', 'r')
fd = open(os.path.join(os.path.dirname(__file__), 'create_db.sql'), 'r')
script = fd.read()
# Open database connection

Loading…
Cancel
Save