Files
modules/script/module.cmd
Xavier Delaruelle d6362eef3d script/init: quote path variables in win-specific scripts
To handle installation path containing whitespaces like "C:\Program
Files\Environment Modules".
2020-01-17 21:39:22 +01:00

11 lines
239 B
Batchfile

@echo off
:: initialize Modules if not already done
if not defined MODULES_CMD (
call "%~dp0..\init\cmd.cmd"
)
set OUTPUT=
:: execute each output line in cmd shell
for /f "tokens=*" %%I in ('call tclsh "%MODULES_CMD%" cmd %*') do %%I