-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed to handle path with space in batch,shell scripts
- Loading branch information
Showing
5 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
env | ||
*.bak | ||
*.pyc | ||
__pycache__ | ||
results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
%~dp0tools\windows\micromamba.exe -r %~dp0env create -y -f %~dp0environment.yml | ||
"%~dp0tools\windows\micromamba.exe" -r "%~dp0env" create -y -f "%~dp0environment.yml" | ||
echo Env installation completed. | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/bash | ||
BASEDIR=$(pwd) | ||
chmod +x $BASEDIR/tools/linux/micromamba | ||
chmod +x "$BASEDIR/tools/linux/micromamba" | ||
chmod +x start.sh | ||
$BASEDIR/tools/linux/micromamba -r $BASEDIR/env create -y -f $BASEDIR/environment.yml | ||
$BASEDIR/tools/linux/micromamba shell init -s bash -p $BASEDIR/umamba | ||
"$BASEDIR/tools/linux/micromamba" -r "$BASEDIR/env" create -y -f "$BASEDIR/environment.yml" | ||
"$BASEDIR/tools/linux/micromamba" shell init -s bash -p "$BASEDIR/umamba" | ||
read -n1 -r -p "FastSD CPU installation completed,press any key to continue..." key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
@echo off | ||
echo Starting fastsdcpu | ||
cd %~dp0env\condabin\ | ||
cd "%~dp0env\condabin\" | ||
call activate.bat | ||
micromamba activate %~dp0env\envs\fastsd-env && python %~dp0main.py | ||
micromamba activate "%~dp0env\envs\fastsd-env" && python "%~dp0main.py" | ||
|