From 1b0a814371cd871d5c0b062a4645f6c494bdc5b3 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Sun, 22 Oct 2023 23:30:32 -0400 Subject: [PATCH] fix(bindgen): create __init__.py for emscripten package test fix import --- src/bindgen/python/emscripten/emscripten-test-module.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bindgen/python/emscripten/emscripten-test-module.js b/src/bindgen/python/emscripten/emscripten-test-module.js index 4bcb23269..e0fec60f9 100644 --- a/src/bindgen/python/emscripten/emscripten-test-module.js +++ b/src/bindgen/python/emscripten/emscripten-test-module.js @@ -32,6 +32,10 @@ async def test_example(selenium, package_wheel): if (!fs.existsSync(modulePath)) { fs.writeFileSync(modulePath, moduleContent) } + const initPath = path.join(packageDir, 'test', '__init__.py') + if (!fs.existsSync(initPath)) { + fs.writeFileSync(initPath, '') + } } export default emscriptenTestModule