mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 12:28:08 +01:00
otherwise setup.py build wont work
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
.git
|
||||||
wicd.egg-info/
|
wicd.egg-info/
|
||||||
*.bak
|
*.bak
|
||||||
**/*.pyc
|
**/*.pyc
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -631,7 +631,7 @@ class compile_translations(Command):
|
|||||||
msgfmt = subprocess.Popen(['msgfmt', '--statistics', pofile,
|
msgfmt = subprocess.Popen(['msgfmt', '--statistics', pofile,
|
||||||
'-o', '/dev/null'], stderr=subprocess.PIPE)
|
'-o', '/dev/null'], stderr=subprocess.PIPE)
|
||||||
returncode = msgfmt.wait() # let it finish, and get the exit code
|
returncode = msgfmt.wait() # let it finish, and get the exit code
|
||||||
output = msgfmt.stderr.readline().strip()
|
output = msgfmt.stderr.readline().strip().decode('utf-8')
|
||||||
if len(output) == 0 or returncode != 0:
|
if len(output) == 0 or returncode != 0:
|
||||||
print(len(output), returncode)
|
print(len(output), returncode)
|
||||||
raise ValueError
|
raise ValueError
|
||||||
|
|||||||
Reference in New Issue
Block a user