Kris Lamoureux
3f4fa3c10d
- Create a bash script to set up a virtual environment - Implement config.ini loading with debug option - Create a basic torrent listing and slow print functionality
19 lines
360 B
Bash
Executable File
19 lines
360 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Create a virtual environment if it does not exist
|
|
if [ ! -d "venv" ]; then
|
|
python3 -m venv venv && \
|
|
source venv/bin/activate && \
|
|
pip install -r requirements.txt && \
|
|
deactivate
|
|
fi
|
|
|
|
# Activate the virtual environment
|
|
source venv/bin/activate
|
|
|
|
# Run the Python script
|
|
python main.py "$@"
|
|
|
|
# Deactivate the virtual environment
|
|
deactivate
|