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
|
# libpath
|
||||||
|
|
||||||
# try:
|
try:
|
||||||
# if (sys.version_info.major != 2) or (sys.version_info.minor < 7):
|
if (sys.version_info.major != 3) or (sys.version_info.minor < 5):
|
||||||
# raise Exception("You must run Syncplay with Python 2.7!")
|
raise Exception("You must run Syncplay with Python 3.5 or newer!")
|
||||||
# except AttributeError:
|
except AttributeError:
|
||||||
# import warnings
|
import warnings
|
||||||
# warnings.warn("You must run Syncplay with Python 2.7!")
|
warnings.warn("You must run Syncplay with Python 3.5 or newer!")
|
||||||
|
|
||||||
from syncplay.clientManager import SyncplayClientManager
|
from syncplay.clientManager import SyncplayClientManager
|
||||||
from syncplay.utils import blackholeStdoutForFrozenWindow
|
from syncplay.utils import blackholeStdoutForFrozenWindow
|
||||||
|
|
|
@ -5,12 +5,12 @@ import site, sys
|
||||||
|
|
||||||
# libpath
|
# libpath
|
||||||
|
|
||||||
# try:
|
try:
|
||||||
# if (sys.version_info.major != 2) or (sys.version_info.minor < 7):
|
if (sys.version_info.major != 3) or (sys.version_info.minor < 5):
|
||||||
# raise Exception("You must run Syncplay with Python 2.7!")
|
raise Exception("You must run Syncplay with Python 3.5 or newer!")
|
||||||
# except AttributeError:
|
except AttributeError:
|
||||||
# import warnings
|
import warnings
|
||||||
# warnings.warn("You must run Syncplay with Python 2.7!")
|
warnings.warn("You must run Syncplay with Python 3.5 or newer!")
|
||||||
|
|
||||||
from twisted.internet import reactor
|
from twisted.internet import reactor
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue