-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Add an example VENV_DIR
constant to dev
session in cookbook?
#588
Comments
VENV
constant to dev
session in cookbook?VENV_DIR
constant to dev
session in cookbook?
When run, Nox will change directories to the one containing the Lines 94 to 99 in bf1c226
That could be why your non-resolved path is causing some weirdness. As for including the example I'm all for it, if you've tripped up this way there's a good chance others will too. The cookbook is just a part of the project docs at |
Thank you @FollowTheProcess -- my
Will do. |
Hi
nox
devs and maintainers, thank you for this great tool.I'd like to suggest a very minor tweak to the
dev
session example in the cookbookhttps://nox.thea.codes/en/stable/cookbook.html#instant-dev-environment
This example is exactly one of the things that I was hoping
nox
could give me.But I got confused because I defined my
VENV_DIR
as simplypathlib.Path('.venv')
which resulted in the following cryptic error:After staring at examples in Scikit-HEP I realized that what I needed to do was chain a call of
Path.resolve()
method onto myVENV_DIR
:Not quite clear to me why my simple
pathlib.Path('venv')
without theresolve
doesn't work -- somehownox
is runnning things from a place that is not in mycwd
? (I realize this is just my blissful ignorance about the $PATH speaking)Anyway, I'm suggesting to just add an example
VENV_DIR
like this to thedev
recipe, e.g.There is a comment explaining that
VENV_DIR
needs to be defined but the bit about needing toresolve()
it would help I thinkThe text was updated successfully, but these errors were encountered: