Title: Add ability to initialize cwd from PWD when targeting WASI by d3lm · Pull Request #5040 · RustPython/RustPython · GitHub
Open Graph Title: Add ability to initialize cwd from PWD when targeting WASI by d3lm · Pull Request #5040 · RustPython/RustPython
X Title: Add ability to initialize cwd from PWD when targeting WASI by d3lm · Pull Request #5040 · RustPython/RustPython
Description: When compiling to WASI the the current directory is set to / on boot. That's a bit unfortunate and it means that if you'd list files in . it would read the root directory. This PR allows to initialize the current working directory from the PWD environment variable. I have added a target check to only do this for WASI.
Open Graph Description: When compiling to WASI the the current directory is set to / on boot. That's a bit unfortunate and it means that if you'd list files in . it would read the root directory. This PR allows to...
X Description: When compiling to WASI the the current directory is set to / on boot. That's a bit unfortunate and it means that if you'd list files in . it would read the root directory. This PR a...
Opengraph URL: https://github.com/RustPython/RustPython/pull/5040
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:96352bd1-b931-73ff-c0b3-57f744387605 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C4F8:2AA572:17217A:1F9A9B:69652362 |
| html-safe-nonce | 2ca4d5b8d90bfc2c81cfe0bfd3a81b14e87714e2a59769043896ca285a74044f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEY4OjJBQTU3MjoxNzIxN0E6MUY5QTlCOjY5NjUyMzYyIiwidmlzaXRvcl9pZCI6IjQ2NDQ2MzUyNDQwNTg5NzcxMjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6f64b0819a9477b0382d1e10774055aeedd92aee6c0acfb0ff7062dba986154b |
| hovercard-subject-tag | pull_request:1476976775 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/5040/files |
| twitter:image | https://avatars.githubusercontent.com/u/12571019?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12571019?s=400&v=4 |
| og:image:alt | When compiling to WASI the the current directory is set to / on boot. That's a bit unfortunate and it means that if you'd list files in . it would read the root directory. This PR allows to... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 817276b8a3521a687e743b852e21b1c4c62a9fabf649a41d85c1499aaa39fab1 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a4c6d32d56fbcafaf5646e244c8989317f135a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width