2023-04-01 10:29:45 +00:00
|
|
|
#!/bin/bash
|
2023-03-19 07:29:16 +00:00
|
|
|
|
|
|
|
# Activate the virtual environment
|
2023-04-01 10:29:45 +00:00
|
|
|
source venv/bin/activate
|
2023-03-28 01:58:30 +00:00
|
|
|
|
2023-04-01 10:29:45 +00:00
|
|
|
# Validate the requirements and store the exit code
|
|
|
|
python tools/validate_requirements.py
|
|
|
|
exit_code=$?
|
|
|
|
|
|
|
|
# If the exit code is 0, run the kohya_gui.py script with the command-line arguments
|
|
|
|
if [ $exit_code -eq 0 ]; then
|
2023-03-19 07:29:16 +00:00
|
|
|
python kohya_gui.py "$@"
|
|
|
|
fi
|