Skip to content

Commit

Permalink
Python 3.6 support (#121).
Browse files Browse the repository at this point in the history
  • Loading branch information
cztomczak committed Dec 9, 2016
1 parent 1da0110 commit 2f336cf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/linux/installer/__init__.py.template
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ libcef_so = os.path.join(package_dir, "libcef.so")
ctypes.CDLL(libcef_so, ctypes.RTLD_GLOBAL)

import sys
if 0x02070000 <= sys.hexversion < 0x02080000:
if (2, 7) <= sys.version_info < (2, 8):
from . import cefpython_py27 as cefpython
elif 0x03040000 <= sys.hexversion < 0x03050000:
elif (3, 4) <= sys.version_info < (3, 5):
from . import cefpython_py34 as cefpython
elif 0x03050000 <= sys.hexversion < 0x03060000:
elif (3, 5) <= sys.version_info < (3, 6):
from . import cefpython_py35 as cefpython
elif (3, 6) <= sys.version_info < (3, 7):
from . import cefpython_py36 as cefpython
else:
raise Exception("Unsupported python version: " + sys.version)

0 comments on commit 2f336cf

Please sign in to comment.