Skip to content
Snippets Groups Projects
Commit e4b45101 authored by Christian Goetze's avatar Christian Goetze
Browse files

Added workaround for popen bug in scripts/update_version_files.py

when executable is in a weird location...
parent e7a8acad
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,9 @@ def usage():
def _getstatusoutput(cmd):
"""Return Win32 (status, output) of executing cmd
in a shell."""
if os.path.sep != "/":
# stupid #%#$$ windows
cmd = 'cmd.exe /c "'+cmd+'"'
pipe = os.popen(cmd, 'r')
text = pipe.read()
sts = pipe.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment