Browse Source

Python version checking is better

Josh Yelon 18 years ago
parent
commit
14bd774264
1 changed files with 1 additions and 1 deletions
  1. 1 1
      doc/makepanda/makepandacore.py

+ 1 - 1
doc/makepanda/makepandacore.py

@@ -694,7 +694,7 @@ def SdkLocatePython():
             SDK["PYTHON"]="thirdparty/win-python"
             SDK["PYTHON"]="thirdparty/win-python"
 	    SDK["PYTHONVERSION"]="python2.4"
 	    SDK["PYTHONVERSION"]="python2.4"
         else:
         else:
-            oscmd("python -V > built/tmp/pythonversion 2>&1")
+            os.system("python -V > built/tmp/pythonversion 2>&1")
             pv=ReadFile("built/tmp/pythonversion")
             pv=ReadFile("built/tmp/pythonversion")
             if (pv.startswith("Python ")==0):
             if (pv.startswith("Python ")==0):
                 exit("python -V did not produce the expected output")
                 exit("python -V did not produce the expected output")