diff --git a/docs/platforms/ios-app-bundle.md b/docs/platforms/ios-app-bundle.md index 4aed0c12..949a729f 100644 --- a/docs/platforms/ios-app-bundle.md +++ b/docs/platforms/ios-app-bundle.md @@ -96,7 +96,7 @@ The sample's project is `iosApp/iosApp.xcodeproj` (product `PythonDemo.app`, bun ```sh set -e cd "$SRCROOT/.." -export PYTHON_PAYLOAD_DIR="$SRCROOT/../sample/python/src/main" +export PYTHON_PAYLOAD_DIR="$SRCROOT/../sample/src/commonMain/python" /bin/bash tools/xcode/install-python.sh ``` diff --git a/iosApp/iosApp.xcodeproj/project.pbxproj b/iosApp/iosApp.xcodeproj/project.pbxproj index 7f0dbc4a..6960815a 100644 --- a/iosApp/iosApp.xcodeproj/project.pbxproj +++ b/iosApp/iosApp.xcodeproj/project.pbxproj @@ -198,7 +198,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "set -e\n# SPEC L-10 / issue #59: the CPython stdlib and this app's python/ payload into the .app, with\n# extension modules wrapped as frameworks. See docs/platforms/ios-app-bundle.md.\ncd \"$SRCROOT/..\"\nexport PYTHON_PAYLOAD_DIR=\"$SRCROOT/../sample/python/src/main\"\n/bin/bash tools/xcode/install-python.sh\n"; + shellScript = "set -e\n# SPEC L-10 / issue #59: the CPython stdlib and this app's python/ payload into the .app, with\n# extension modules wrapped as frameworks. See docs/platforms/ios-app-bundle.md.\ncd \"$SRCROOT/..\"\nexport PYTHON_PAYLOAD_DIR=\"$SRCROOT/../sample/src/commonMain/python\"\n/bin/bash tools/xcode/install-python.sh\n"; }; F36B1CEB2AD83DDC00CB74D5 /* Compile Kotlin Framework */ = { isa = PBXShellScriptBuildPhase; diff --git a/sample/python/pyproject.toml b/sample/pyproject.toml similarity index 100% rename from sample/python/pyproject.toml rename to sample/pyproject.toml diff --git a/sample/python/src/main/example_py/__init__.py b/sample/src/commonMain/python/example_py/__init__.py similarity index 100% rename from sample/python/src/main/example_py/__init__.py rename to sample/src/commonMain/python/example_py/__init__.py diff --git a/sample/python/src/main/example_py/data/table.json b/sample/src/commonMain/python/example_py/data/table.json similarity index 100% rename from sample/python/src/main/example_py/data/table.json rename to sample/src/commonMain/python/example_py/data/table.json