Make cg2glsl.py fail gracefully if python is too old
This commit is contained in:
parent
6e48f3d2d2
commit
cb0f3d844f
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Python 3 script which converts simple RetroArch Cg shaders to modern GLSL (ES) format.
|
Python 3 script which converts simple RetroArch Cg shaders to modern GLSL (ES) format.
|
||||||
|
@ -7,6 +7,10 @@ License: Public domain
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
if sys.version_info<(3,0,0):
|
||||||
|
sys.stderr.write("You need python 3.0 or later to run this script\n")
|
||||||
|
exit(1)
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import errno
|
import errno
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
Loading…
Reference in New Issue