Commits

zougloub committed 92ec3ad

Revert "cleanup"

This reverts commit 3fa197298ba8adb7700c8054ae8de8296c3e77ad.

Trying to import extras/subprocess first fails on Python 3.{1,2}.

Comments (0)

Files changed (1)

 
 import os, sys, errno, traceback, inspect, re, shutil, datetime, gc
 try:
-	from waflib.extras import subprocess
-except ImportError:
 	import subprocess
+except:
+	try:
+		import waflib.extras.subprocess as subprocess
+	except:
+		print("The subprocess module is missing (python2.3?):\n try calling 'waf update --files=subprocess'\n or add a copy of subprocess.py to the python libraries")
 
 try:
 	from collections import deque