-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt mamba name in Win shell wrappers
- Loading branch information
1 parent
10f35fa
commit e5426e1
Showing
8 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
@REM Copyright (C) 2021 QuantStack | ||
@REM SPDX-License-Identifier: BSD-3-Clause | ||
|
||
@CALL "%~dp0..\condabin\mamba_hook.bat" | ||
micromamba activate %* | ||
|
||
@REM Replaced by mamba executable with the MAMBA_EXE variable pointing to the correct location. | ||
__MAMBA_INSERT_MAMBA_EXE__ | ||
|
||
@REM We need to know the name of the executable, either mamba or micromamba | ||
@REM Get the base filename of MAMBA_EXE | ||
@FOR %%A in ("%MAMBA_EXE%") do set "__mamba_filename=%%~nxA" | ||
@REM Remove .exe extension from the filename | ||
@SET "__mamba_name=!__mamba_filename:%~x1=!" | ||
|
||
!__mamba_name! activate %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters