Skip to content

Commit

Permalink
Merge pull request #895 from Hafiidz/dev
Browse files Browse the repository at this point in the history
Urgent Fix to PR:860
  • Loading branch information
ZeroCool940711 authored Sep 9, 2022
2 parents bd0e365 + 11af1d9 commit 90a922c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion webui-streamlit.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

:: copy over the first line from environment.yaml, e.g. name: ldm, and take the second word after splitting by ":" delimiter
set /p first_line=< environment.yaml
for /f "tokens=2 delims=:" %%i in ("%first_line%") do set conda_env_name=%%i
for /f "tokens=2 delims=:" %%i in ("%first_line%") do set untrimmed_conda_env_name=%%i
for /f "tokens=* delims= " %%a in ("%untrimmed_conda_env_name%") do set conda_env_name=%%a
echo Environment name is set as %conda_env_name% as per environment.yaml

:: Put the path to conda directory after "=" sign if it's installed at non-standard path:
Expand Down
3 changes: 2 additions & 1 deletion webui.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

:: copy over the first line from environment.yaml, e.g. name: ldm, and take the second word after splitting by ":" delimiter
set /p first_line=< environment.yaml
for /f "tokens=2 delims=:" %%i in ("%first_line%") do set conda_env_name=%%i
for /f "tokens=2 delims=:" %%i in ("%first_line%") do set untrimmed_conda_env_name=%%i
for /f "tokens=* delims= " %%a in ("%untrimmed_conda_env_name%") do set conda_env_name=%%a
echo Environment name is set as %conda_env_name% as per environment.yaml

:: Put the path to conda directory after "=" sign if it's installed at non-standard path:
Expand Down

0 comments on commit 90a922c

Please sign in to comment.