Skip to content

Commit f3d4fe8

Browse files
Simplify interpretation of CROSS_BUILD_DIR
Co-authored-by: Malcolm Smith <smith@chaquo.com>
1 parent 68ba1d7 commit f3d4fe8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Android/testbed/app/build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ plugins {
88

99
val ANDROID_DIR = file("../..")
1010
val PYTHON_DIR = ANDROID_DIR.parentFile!!
11-
val CROSS_BUILD_DIR = System.getenv("CROSS_BUILD_DIR") ?: "cross-build"
12-
val PYTHON_CROSS_DIR = file(
13-
if ((File(CROSS_BUILD_DIR)).isAbsolute) CROSS_BUILD_DIR else "$PYTHON_DIR/$CROSS_BUILD_DIR"
11+
val PYTHON_CROSS_DIR = file(System.getenv("CROSS_BUILD_DIR") ?: "$PYTHON_DIR/cross-build")
1412
)
1513
val inSourceTree = (
1614
ANDROID_DIR.name == "Android" && file("$PYTHON_DIR/pyconfig.h.in").exists()

0 commit comments

Comments
 (0)