Skip to content

Commit fb85205

Browse files
committed
fixed #3317
1 parent e928129 commit fb85205

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pythonforandroid/meson_python.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ def handle_python_info():
1818

1919
prefix = C.TARGET_PYTHON_PREFIX
2020

21-
sysconfig_file = glob(join(prefix, "lib/python3.14/_sysconfigdata*.py"))[0]
21+
ver_python = f"python{C.PYTHON_MAJOR_VERSION}.{C.PYTHON_MINOR_VERSION}"
22+
23+
sysconfig_file = glob(join(prefix, f"lib/{ver_python}/_sysconfigdata*.py"))[0]
2224

2325
spec = importlib.util.spec_from_file_location("_android_cfg", sysconfig_file)
2426
cfg = importlib.util.module_from_spec(spec)
2527
spec.loader.exec_module(cfg)
2628

27-
ver_python = f"python{C.PYTHON_MAJOR_VERSION}.{C.PYTHON_MINOR_VERSION}"
28-
2929
site_path = join(prefix, f"lib/{ver_python}/site-packages")
3030

3131
android_paths = {

0 commit comments

Comments
 (0)