mirror of https://github.com/Syncplay/syncplay
Check for Python version newer than 3.5
This commit is contained in:
parent
7fc3a0bb77
commit
3f910ebcba
|
@ -4,12 +4,12 @@ import site, sys
|
|||
|
||||
# libpath
|
||||
|
||||
# try:
|
||||
# if (sys.version_info.major != 2) or (sys.version_info.minor < 7):
|
||||
# raise Exception("You must run Syncplay with Python 2.7!")
|
||||
# except AttributeError:
|
||||
# import warnings
|
||||
# warnings.warn("You must run Syncplay with Python 2.7!")
|
||||
try:
|
||||
if (sys.version_info.major != 3) or (sys.version_info.minor < 5):
|
||||
raise Exception("You must run Syncplay with Python 3.5 or newer!")
|
||||
except AttributeError:
|
||||
import warnings
|
||||
warnings.warn("You must run Syncplay with Python 3.5 or newer!")
|
||||
|
||||
from syncplay.clientManager import SyncplayClientManager
|
||||
from syncplay.utils import blackholeStdoutForFrozenWindow
|
||||
|
|
|
@ -5,12 +5,12 @@ import site, sys
|
|||
|
||||
# libpath
|
||||
|
||||
# try:
|
||||
# if (sys.version_info.major != 2) or (sys.version_info.minor < 7):
|
||||
# raise Exception("You must run Syncplay with Python 2.7!")
|
||||
# except AttributeError:
|
||||
# import warnings
|
||||
# warnings.warn("You must run Syncplay with Python 2.7!")
|
||||
try:
|
||||
if (sys.version_info.major != 3) or (sys.version_info.minor < 5):
|
||||
raise Exception("You must run Syncplay with Python 3.5 or newer!")
|
||||
except AttributeError:
|
||||
import warnings
|
||||
warnings.warn("You must run Syncplay with Python 3.5 or newer!")
|
||||
|
||||
from twisted.internet import reactor
|
||||
|
||||
|
|
Loading…
Reference in New Issue