Skip to content

Commit b7461d3

Browse files
committed
Clarify sysconfigdata file discovery
1 parent 24b082f commit b7461d3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Android/android.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,9 @@ def android_env(host):
9898
prefix = subdir(host) / "prefix"
9999
else:
100100
prefix = ANDROID_DIR / "prefix"
101-
sysconfigdata_files = prefix.glob("lib/python*/_sysconfigdata__android_*.py")
102-
host = re.fullmatch(
103-
r"_sysconfigdata__android_(.+).py", next(sysconfigdata_files).name
104-
)[1]
101+
sysconfig_files = prefix.glob("lib/python*/_sysconfigdata__android_*.py")
102+
sysconfig_filename = next(sysconfig_files).name
103+
host = re.fullmatch(r"_sysconfigdata__android_(.+).py", sysconfig_filename)[1]
105104

106105
env_script = ANDROID_DIR / "android-env.sh"
107106
env_output = subprocess.run(

0 commit comments

Comments
 (0)