Commit 121f2967 authored by Stefan Behnel's avatar Stefan Behnel

Py2.3 fix

parent 02d30c6d
......@@ -11,7 +11,6 @@ DEBUG = True
import sys
import os
import subprocess
from distutils import sysconfig
INCDIR = sysconfig.get_python_inc()
......@@ -51,7 +50,13 @@ def runcmd(cmd, shell=True):
else:
_debug(' '.join(cmd))
returncode = subprocess.call(cmd, shell=shell)
try:
import subprocess
except ImportError: # Python 2.3 ...
returncode = os.system(cmd)
else:
returncode = subprocess.call(cmd, shell=shell)
if returncode:
sys.exit(returncode)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment