Compare commits
No commits in common. "da11ede6a248a363b8622ee713c42b86e5beec6e" and "18e35fe11ddef3b208e840377917344c6620a52d" have entirely different histories.
da11ede6a2
...
18e35fe11d
@ -1,12 +0,0 @@
|
||||
@echo off
|
||||
setlocal
|
||||
set desired_path=%devenver_root%\NodeJS\16.19.0
|
||||
set desired_exe=yarn
|
||||
|
||||
set path=%desired_path%;%path%
|
||||
set exe_to_use=""
|
||||
for /f "delims=" %%a in ('where "$desired_path:%desired_exe%"') do ( set "exe_to_use=%%a")
|
||||
echo [DEVENVER] Executing script "%~dpnx0" with "%exe_to_use%"
|
||||
|
||||
call %desired_exe% %*
|
||||
endlocal
|
11
devenver.py
11
devenver.py
@ -794,16 +794,9 @@ def run(user_app_list,
|
||||
|
||||
# Write the devenv script with environment variables
|
||||
if is_windows:
|
||||
devenv_script_buffer += "set devenver_root_backslash=%~dp0\n"
|
||||
devenv_script_buffer += "set devenver_root=%devenver_root_backslash:~0,-1%\n"
|
||||
devenv_script_buffer += "set devenver_root_backslash=\n"
|
||||
|
||||
devenv_script_buffer += "set path=%~dp0Symlinks;%PATH%\n"
|
||||
devenv_script_buffer += "set path=%~dp0Scripts;%PATH%\n"
|
||||
devenv_script_buffer += "set PATH=%~dp0Symlinks;%PATH%\n"
|
||||
else:
|
||||
devenv_script_buffer += f"devenver_root=\"$( cd -- $( dirname -- \"${{BASH_SOURCE[0]}}\" ) &> /dev/null && pwd )\":$PATH\n"
|
||||
devenv_script_buffer += f"path=\"$( cd -- $( dirname -- \"${{BASH_SOURCE[0]}}\" ) &> /dev/null && pwd )/Scripts\":$PATH\n"
|
||||
devenv_script_buffer += f"path=\"$( cd -- $( dirname -- \"${{BASH_SOURCE[0]}}\" ) &> /dev/null && pwd )/Symlinks\":$PATH\n"
|
||||
devenv_script_buffer += f"PATH=\"$( cd -- $( dirname -- \"${{BASH_SOURCE[0]}}\" ) &> /dev/null && pwd )/Symlinks\":$PATH\n"
|
||||
|
||||
devenv_script_name = f"{devenv_script_name}.bat" if is_windows else f"{devenv_script_name}.sh"
|
||||
devenv_script_path = pathlib.Path(install_dir, devenv_script_name)
|
||||
|
Loading…
Reference in New Issue
Block a user