From 914bc8463846a8bfa12683b19db5c15c2198706f Mon Sep 17 00:00:00 2001 From: Jiting Date: Mon, 28 Jan 2019 22:38:01 +0800 Subject: [PATCH] fix a decode error --- maker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maker.py b/maker.py index b255320..4f777a7 100644 --- a/maker.py +++ b/maker.py @@ -19,7 +19,8 @@ def make_release(): if os.name == 'nt': lrelease = 'C:/Qt/Qt5.6.3/5.6.3/msvc2015_64/bin/lrelease.exe' # On my laptop. else: # os.name == 'posix' - lrelease = subprocess.run(['whereis', 'lrelease', '-b'], stdout=subprocess.PIPE).stdout[11:] + # result = subprocess.run(['whereis', 'lrelease', '-b'], stdout=subprocess.PIPE).stdout.decode("utf-8") + lrelease = 'lrelease' # source_file = [f[:-3] for f in os.listdir(src) if os.path.isfile(os.path.join(src, f)) and f[-5:-3] == language] source_file = [f[:-3] for f in os.listdir(src) if f[-5:-3] == language] release_file = []