Skip to content

Commit

Permalink
fix(bindgen): create __init__.py for emscripten package test fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Nov 4, 2023
1 parent 4c1f493 commit 1b0a814
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bindgen/python/emscripten/emscripten-test-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1b0a814

Please sign in to comment.