Skip to content

Conversation

@Ovenoboyo
Copy link
Contributor

PYTHONPATHS on windows is separated by a ; instead of a : unlike unix systems. Which causes splitting of PYTHONPATH to fail

E.g C:\\python3\\Lib\\site-packages would be split into [C, \\python3...]

The splitting should instead be done using std::env::split_paths which makes use of the platform specific env separator.

The second issue is mounting windows named paths in wizer. I believe mounting C:\\python3\\Lib\\site-packages just doesn't work. Instead, convert the path to unix style (i.e C:\\python3\\Lib\\site-packages becomes /python3/Lib/site-packages) and then update the PYTHONPATH env var accordingly.

Copy link
Contributor

@G4Vi G4Vi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, great work! It's unfortunate Wizer appears to have no way to specify an initial env instead of inherit host, so it looks like tampering with the host env is necessary.

@G4Vi G4Vi merged commit 15162ea into extism:main Jan 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants