-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtd_launcher.sh
More file actions
executable file
·28 lines (24 loc) · 740 Bytes
/
td_launcher.sh
File metadata and controls
executable file
·28 lines (24 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Mac/Linux launcher script for TD Launcher Plus
# Usage: ./td_launcher.sh [path_to_toe_file]
# Make sure we're in the script directory
cd "$(dirname "$0")"
# Check if Python is available
if ! command -v python3 &> /dev/null; then
echo "Error: python3 is not installed or not in PATH"
echo "Please install Python 3 to run TD Launcher Plus"
exit 1
fi
# Check if the main script exists
if [ ! -f "td_launcher.py" ]; then
echo "Error: td_launcher.py not found in $(pwd)"
exit 1
fi
# Run the launcher with any provided arguments
if [ $# -eq 0 ]; then
echo "Starting TD Launcher Plus..."
python3 td_launcher.py
else
echo "Starting TD Launcher Plus with file: $1"
python3 td_launcher.py "$1"
fi