Use absolute path

This commit is contained in:
Louis Vézina 2017-10-20 09:12:39 -04:00
parent 4a4a0fac62
commit 8149ee162c

View file

@ -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