-
Notifications
You must be signed in to change notification settings - Fork 460
Relative path import in windows10 #867
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
Comments
Thanks for reporting and sorry for the inconvenience. This looks like either:
This part is very interesting:
It suggests that it's not an issue with Python bindings, but something about running it from Python environment. We'll need to investigate more. Can you see if you get the same results using Can you try running it from Python from different directories and observe the results? Did all your experiments run from |
Thanks for your advice. It is very strange that both jsonnet CLI and I will share once I know the reason of the phenomenon. And again thanks for your help. |
Pretty old issue now (which apparently mysteriously resolved itself?). I'm hoping that some underlying path handling problems on Windows were resolved by #1137 (which included some path processing fixes) but it's difficult to be sure whether it solved this problem. Anyway, I'll optimistically assume this has been fixed. |
Uh oh!
There was an error while loading. Please reload this page.
I call jsonnet in python with
_jsonnet.evaluate_file()
with part of jsonnet file as the following code block/MyProject/app/helloworld.jsonnet
is the jsonnet file I want to get imported.However I cannot do it with an ERROR:
Strangely, jsonnet CLI runs as expect with this relative path.
After many attempts, I find that the program works when
/MyProjetc/env/test/deploy.jsonnet
is modified asBut in this case, jsonnet CLI encounters an ERROR:
I try to run jsonnet CLI in python with
os.popen()
, and get the same result as_jsonnet.evaluate_file()
The text was updated successfully, but these errors were encountered: