Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit 170cdd1

Browse files
committed
fix
1 parent 5679f28 commit 170cdd1

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

src/common/cefpython_public_api.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@
5050
#include "../../build/build_cefpython/cefpython_py38_fixed.h"
5151
#elif PY_MINOR_VERSION == 9
5252
#include "../../build/build_cefpython/cefpython_py39_fixed.h"
53+
#elif PY_MINOR_VERSION == 10
54+
#include "../../build/build_cefpython/cefpython_py310_fixed.h"
55+
#elif PY_MINOR_VERSION == 11
56+
#include "../../build/build_cefpython/cefpython_py311_fixed.h"
57+
#else
58+
#error "Unsupported Python version, please check cefpython_public_api.h"
5359
#endif // PY_MINOR_VERSION
5460
#endif // PY_MAJOR_VERSION
5561

tools/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def get_cefpython_version():
455455

456456

457457
def get_version_from_file(header_file):
458-
with open(header_file, "rU") as fp:
458+
with open(header_file, "r") as fp:
459459
contents = fp.read() # no need to decode() as "rU" specified
460460
ret = dict()
461461
matches = re.findall(r'^#define (\w+) "?([^\s"]+)"?', contents,

tools/installer/cefpython3.__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,11 @@
7070
elif sys.version_info[:2] == (3, 9):
7171
# noinspection PyUnresolvedReferences
7272
from . import cefpython_py39 as cefpython
73+
elif sys.version_info[:2] == (3, 10):
74+
# noinspection PyUnresolvedReferences
75+
from . import cefpython_py310 as cefpython
76+
elif sys.version_info[:2] == (3, 11):
77+
# noinspection PyUnresolvedReferences
78+
from . import cefpython_py311 as cefpython
7379
else:
7480
raise Exception("Python version not supported: " + sys.version)

0 commit comments

Comments
 (0)