sbsv2/raptor/test/common/raptor_tests.py
branchwip
changeset 22 072f869b0bc5
parent 9 b211d87c390a
child 25 2b76b04e296d
--- a/sbsv2/raptor/test/common/raptor_tests.py	Sun Nov 29 16:09:02 2009 +0000
+++ b/sbsv2/raptor/test/common/raptor_tests.py	Sun Nov 29 16:09:20 2009 +0000
@@ -100,8 +100,14 @@
 				except OSError, error:
 					pass
 	else:
-		(comIn, comOut) = os.popen4("which " + input_file)
-		output = comOut.read()
+		whichproc = subprocess.Popen(args=["which", input_file], 
+					stdout=subprocess.PIPE,
+					stderr=subprocess.STDOUT,
+					shell=False,
+					universal_newlines=True)
+		output = whichproc.stdout.readlines()
+		whichproc.wait()
+
 		if len(output) > 0:
 			locations.append(output[0:(len(output) - 1)])