Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the pre-open directory when perform wasi program? #716

Open
abc767234318 opened this issue Apr 12, 2023 · 0 comments
Open

How to set the pre-open directory when perform wasi program? #716

abc767234318 opened this issue Apr 12, 2023 · 0 comments
Labels
❓ question Further information is requested

Comments

@abc767234318
Copy link

abc767234318 commented Apr 12, 2023

Summary

I have a wasi program, and the command "wasmer run B1-4.wasm --dir=./testfolder -- testfolder" will make it perform well. But it seems that the wasmer-python can't set the pre-open directory as wasmer-cli does. I found that the wasmer-python not support the following options from the example folder.

wasi_env = \
    wasi.StateBuilder('wasi_test_program'). \
        argument('--test'). \
        environment('COLOR', 'true'). \
        environment('APP_SHOULD_LOG', 'false'). \
        map_directory('the_host_current_dir', '.'). \
        finalize()
@abc767234318 abc767234318 added the ❓ question Further information is requested label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant