This repository was archived by the owner on Aug 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ def get_cefpython_version():
455455
456456
457457def 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 ,
Original file line number Diff line number Diff line change 7070elif 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
7379else :
7480 raise Exception ("Python version not supported: " + sys .version )
You can’t perform that action at this time.
0 commit comments