mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
Python version checking is better
This commit is contained in:
parent
d20edf336e
commit
14bd774264
@ -694,7 +694,7 @@ def SdkLocatePython():
|
||||
SDK["PYTHON"]="thirdparty/win-python"
|
||||
SDK["PYTHONVERSION"]="python2.4"
|
||||
else:
|
||||
oscmd("python -V > built/tmp/pythonversion 2>&1")
|
||||
os.system("python -V > built/tmp/pythonversion 2>&1")
|
||||
pv=ReadFile("built/tmp/pythonversion")
|
||||
if (pv.startswith("Python ")==0):
|
||||
exit("python -V did not produce the expected output")
|
||||
|
Loading…
x
Reference in New Issue
Block a user