Skip to content

Commit

Permalink
try catch arround empack
Browse files Browse the repository at this point in the history
  • Loading branch information
DerThorsten committed Mar 11, 2024
1 parent 3e88d1b commit d5a4779
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
- name: Install Playwright
run: |
playwright install
# # temporary workaround to get main from empack
# - name: install empack main
# run: |
# micromamba activate dev-env
# pip install git+https://github.com/emscripten-forge/empack.git@main --no-deps --no-build-isolation

- name: Install pyjs-code-runner
run: |
Expand Down
9 changes: 6 additions & 3 deletions pyjs_code_runner/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,12 @@ def run(
)
for mount_file in mount_files:
print(f"mount_file: {mount_file}")
add_tarfile_to_env_meta(
env_meta_filename=env_meta_filename, tarfile=mount_file
)
try:
add_tarfile_to_env_meta(
env_meta_filename=env_meta_filename, tarfile=mount_file
)
except shutil.SameFileError:
pass

# get the backend where the wasm code runs (ie node/browser-main/browser-worker)
backend = get_backend_cls(backend_type=backend_type)(
Expand Down

0 comments on commit d5a4779

Please sign in to comment.