From 56226f941da8266539ce1e1c5957a85f0356ebbd Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 9 Oct 2018 19:59:55 -0400 Subject: [PATCH] Fix for Linux --- bazarr/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bazarr/main.py b/bazarr/main.py index 3f092b18e..b5092214e 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -5,14 +5,17 @@ gc.enable() from get_argv import config_dir, no_update -from bazarr import shutdown_bazarr, restart_bazarr - import os import sys reload(sys) sys.setdefaultencoding('utf8') sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../libs/')) +import os +import sys +sys.path.insert(1, os.path.join(sys.path[0], '..')) +from bazarr import shutdown_bazarr, restart_bazarr + import sqlite3 from init import * from update_db import *