Set up the initial project structure

- 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
This commit is contained in:
2024-09-02 22:33:56 -04:00
commit 3f4fa3c10d
4 changed files with 43 additions and 0 deletions

18
tarch Executable file
View File

@@ -0,0 +1,18 @@
#!/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