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

Py2.3 fix

parent 02d30c6d
...@@ -11,7 +11,6 @@ DEBUG = True ...@@ -11,7 +11,6 @@ DEBUG = True
import sys import sys
import os import os
import subprocess
from distutils import sysconfig from distutils import sysconfig
INCDIR = sysconfig.get_python_inc() INCDIR = sysconfig.get_python_inc()
...@@ -51,7 +50,13 @@ def runcmd(cmd, shell=True): ...@@ -51,7 +50,13 @@ def runcmd(cmd, shell=True):
else: else:
_debug(' '.join(cmd)) _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: if returncode:
sys.exit(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