summaryrefslogtreecommitdiff
path: root/bin/spack_cmd.bat
diff options
context:
space:
mode:
authorJohn Parent <john.parent@kitware.com>2022-01-25 17:29:17 -0500
committerPeter Scheibel <scheibel1@llnl.gov>2022-03-17 09:01:01 -0700
commit90c773488c59e57c19ecca5635c1ae7f70e56076 (patch)
tree92afff7ea0751cb9b3a41bd33ded560b5c00fe82 /bin/spack_cmd.bat
parente65d3d14b4a7a9a9667b006bea1f9f2eafc69472 (diff)
downloadspack-90c773488c59e57c19ecca5635c1ae7f70e56076.tar.gz
spack-90c773488c59e57c19ecca5635c1ae7f70e56076.tar.bz2
spack-90c773488c59e57c19ecca5635c1ae7f70e56076.tar.xz
spack-90c773488c59e57c19ecca5635c1ae7f70e56076.zip
Add Github Actions for Windows (#24504)
Setup Installer CI (#25184), (#25191) Co-authored-by: Zack Galbreath <zack.galbreath@kitware.com> Co-authored-by: lou.lawrence@kitware.com <lou.lawrence@kitware.com> Co-authored-by: Betsy McPhail <betsy.mcphail@kitware.com>
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