-
Notifications
You must be signed in to change notification settings - Fork 317
env.bat using errorlevels #813
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
And so, what do you suggest ? |
Here a small testscript to play around:
And here my suggestion to patch env.bat
|
Ok. I Will have a look this week-end on this. |
it doesn't work exactly like that on my PC, it needs this tweak found on stackoverflow, because of parenthesis in the %path%
and so
Didn't you encounter this problem ? |
stonebig
added a commit
to stonebig/winpython
that referenced
this issue
Mar 7, 2020
solves winpython#813
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
env.bat (and maybe others) use a line like the following:
echo ";%PATH%;" | %FINDDIR%\find.exe /C /I ";%WINPYDIR%\;" >nul
find.exe sets the system variable ERRORLEVEL to 1 if it does not find anything.
This is an issue if env.bat is used within other scripts depending on the system variable ERRORLEVEL.
Reasons:
1.1. NOTE: cannot be done with set ERRORLEVEL=0 (that creates a new variable hiding the orignal one)
The text was updated successfully, but these errors were encountered: