diff options
author | Louis Vézina <[email protected]> | 2020-02-16 10:37:55 -0500 |
---|---|---|
committer | Louis Vézina <[email protected]> | 2020-02-16 10:37:55 -0500 |
commit | cc61d0188f33d33121b95564d9b55d486d5d4544 (patch) | |
tree | 15e84536f8b195a55184f0264688622d61983460 /bazarr.py | |
parent | 7d881e6de9d47ed786e2d59a337f0d4f022ab0a3 (diff) | |
download | bazarr-cc61d0188f33d33121b95564d9b55d486d5d4544.tar.gz bazarr-cc61d0188f33d33121b95564d9b55d486d5d4544.zip |
Fix for Python 2.7 compatibility regression.
Diffstat (limited to 'bazarr.py')
-rw-r--r-- | bazarr.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -117,7 +117,10 @@ def start_bazarr(process_registry=ProcessRegistry()): script = [sys.executable, "-u", os.path.normcase(os.path.join(dir_name, 'bazarr', 'main.py'))] + sys.argv[1:] print("Bazarr starting...") - ep = subprocess.Popen(script, stdout=None, stderr=None, stdin=subprocess.DEVNULL) + if PY3: + ep = subprocess.Popen(script, stdout=None, stderr=None, stdin=subprocess.DEVNULL) + else: + ep = subprocess.Popen(script, stdout=None, stderr=None, stdin=None) process_registry.register(ep) try: ep.wait() |