1
0
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:
Guido Serra
2019-09-09 11:32:51 +02:00
parent 49ad8e4653
commit 8c2696b78c
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
.git
wicd.egg-info/ wicd.egg-info/
*.bak *.bak
**/*.pyc **/*.pyc

View File

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