From f0c82f06c364c5a3dfc9088100f537ec3d9f987a Mon Sep 17 00:00:00 2001 From: jllllll Date: Fri, 24 Mar 2023 18:09:44 -0500 Subject: [PATCH] Add files via upload Add script to open cmd within installation environment for easier modification. --- micromamba-cmd.bat | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 micromamba-cmd.bat diff --git a/micromamba-cmd.bat b/micromamba-cmd.bat new file mode 100644 index 00000000..de868fd7 --- /dev/null +++ b/micromamba-cmd.bat @@ -0,0 +1,15 @@ +@echo off + +set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba +set INSTALL_ENV_DIR=%cd%\installer_files\env + +if not exist "%MAMBA_ROOT_PREFIX%\Scripts\activate.bat" ( + call "%MAMBA_ROOT_PREFIX%\micromamba.exe" shell hook >nul 2>&1 +) +call "%MAMBA_ROOT_PREFIX%\condabin\mamba_hook.bat" || ( echo Micromamba hook not found. && goto end ) +call micromamba activate "%INSTALL_ENV_DIR%" || goto end + +cmd /k "%*" + +:end +pause \ No newline at end of file