From e4b451015e73cefecaf9966afb56bdf623539c62 Mon Sep 17 00:00:00 2001 From: Christian Goetze Date: Tue, 15 Jan 2008 18:26:59 +0000 Subject: Added workaround for popen bug in scripts/update_version_files.py when executable is in a weird location... --- scripts/update_version_files.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/update_version_files.py b/scripts/update_version_files.py index d06e475341..6821623332 100755 --- a/scripts/update_version_files.py +++ b/scripts/update_version_files.py @@ -61,6 +61,9 @@ Common Uses: 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() -- cgit v1.2.3