Skip to content

Commit

Permalink
right path quotes in gui.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
derVedro authored Apr 6, 2023
1 parent 769768c commit 3af1367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env bash

# This gets the directory the script is run from so pathing can work relative to the script where needed.
SCRIPT_DIR="$(cd -- $(dirname -- "$0") && pwd)"
SCRIPT_DIR="$(cd -- "$(dirname -- "$0")" && pwd)"

# Activate the virtual environment
source "$SCRIPT_DIR/venv/bin/activate"

# If the requirements are validated, run the kohya_gui.py script with the command-line arguments
if python tools/validate_requirements.py; then
python "$SCRIPT_DIR/kohya_gui.py" "$@"
fi
fi

0 comments on commit 3af1367

Please sign in to comment.