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

INFOCOM_PATH Variable Does Not Work on Windows #76

Open
jeffnyman opened this issue Feb 14, 2020 · 0 comments
Open

INFOCOM_PATH Variable Does Not Work on Windows #76

jeffnyman opened this issue Feb 14, 2020 · 0 comments

Comments

@jeffnyman
Copy link

jeffnyman commented Feb 14, 2020

Try something like this:

SET INFOCOM_PATH=C:\Users\Jeff\Downloads\zcode

Then call Viola with a story file that is in that path:

python viola.py zork1-r88-s840726.z3

This won't work. If you look at the paths variable that is getting established, it will be this:

['.', '"C', '\\Users\\Jeff\\Downloads\\zcode"']

I should also note that it Python's use of expandvars doesn't seem to work at all in PowerShell, if someone happens to be using that. Running that same command line in PowerShell shows the paths being:

['.', '$INFOCOM_PATH']

A small issue to be sure, but definitely a difference between how Viola works on Mac/Linux and Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants