Skip to content

Commit 2f336cf

Browse files
committed
Python 3.6 support (#121).
1 parent 1da0110 commit 2f336cf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/linux/installer/__init__.py.template

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ libcef_so = os.path.join(package_dir, "libcef.so")
2828
ctypes.CDLL(libcef_so, ctypes.RTLD_GLOBAL)
2929

3030
import sys
31-
if 0x02070000 <= sys.hexversion < 0x02080000:
31+
if (2, 7) <= sys.version_info < (2, 8):
3232
from . import cefpython_py27 as cefpython
33-
elif 0x03040000 <= sys.hexversion < 0x03050000:
33+
elif (3, 4) <= sys.version_info < (3, 5):
3434
from . import cefpython_py34 as cefpython
35-
elif 0x03050000 <= sys.hexversion < 0x03060000:
35+
elif (3, 5) <= sys.version_info < (3, 6):
3636
from . import cefpython_py35 as cefpython
37+
elif (3, 6) <= sys.version_info < (3, 7):
38+
from . import cefpython_py36 as cefpython
3739
else:
3840
raise Exception("Unsupported python version: " + sys.version)

0 commit comments

Comments
 (0)