mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-23 03:25:27 +00:00
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.
|
||||
@ -7,6 +7,10 @@ License: Public domain
|
||||
"""
|
||||
|
||||
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 errno
|
||||
import subprocess
|
||||
|
Loading…
x
Reference in New Issue
Block a user