summaryrefslogtreecommitdiff
path: root/bin/spack_cmd.bat
diff options
context:
space:
mode:
Diffstat (limited to 'bin/spack_cmd.bat')
-rw-r--r--bin/spack_cmd.bat8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/spack_cmd.bat b/bin/spack_cmd.bat
index 6d851d5311..5ba685fa46 100644
--- a/bin/spack_cmd.bat
+++ b/bin/spack_cmd.bat
@@ -14,8 +14,9 @@ popd
:: Check if Python is on the PATH
+if not defined python_pf_ver (
(for /f "delims=" %%F in ('where python.exe') do (set python_pf_ver=%%F) ) 2> NUL
-
+)
if not defined python_pf_ver (
:: If not, look for Python from the Spack installer
:get_builtin
@@ -58,4 +59,9 @@ DOSKEY spacktivate=spack env activate $*
@echo ** Spack Package Manager
@echo **********************************************************************
+IF "%1"=="" GOTO CONTINUE
+set
+GOTO:EOF
+
+:continue
%comspec% /k