Skip to content

Commit

Permalink
Try using sed also on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed Jan 28, 2025
1 parent 6b5ea2e commit 81e4fd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/support/run-scripts/labenv.bat.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ SET EXT=%%~xi

@IF "%EXT%"==".instr" (
@FLAVOR@-pygen %INSTRUMENT%
SET INSTRUMENT="%BASE%_generated.py"
goto :JupyText
sed s/INSTRUMENT/%BASE%/g %BINDIR%\@MCCODE_RELPATH_BINDIR2TOOLDIR@\Python\@MCCODE_PREFIX@run\template.ipynb.in > %BASE%_generated.ipynb
SET INSTRUMENT="%BASE%_generated.ipynb"
goto :JupyLaunch
) ELSE IF "%EXT%"==".py" (
goto :JupyLaunch
) ELSE IF "%EXT%"==".ipynb" (
Expand Down
2 changes: 2 additions & 0 deletions meta-pkgs/windows/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ channels:

dependencies:
- m2-msys2-runtime
- m2-which
- m2-sed
- m2w64-gcc
- m2w64-gsl
- msmpi
Expand Down

0 comments on commit 81e4fd1

Please sign in to comment.