-
Notifications
You must be signed in to change notification settings - Fork 31
install_local
If you've already clone the repo to your local system you can skip this step. If not, you can clone the repo by running the following command in your terminal:
cd /path/to/your/scripts/folder
git clone https://github.com/Drazzilb08/daps.git
For optimal setup it would be best to create a virtual environment for the scripts to run in. This will help to keep the dependencies for the scripts separate from the rest of your system. To create a virtual environment run the following command in your terminal:
cd /path/to/your/scripts/folder/daps
python3 -m venv .venv
Next you'll need to install the requirements
cd /path/to/your/scripts/folder/daps/
source .venv/bin/activate
cd /path/to/your/scripts/folder/daps/
pip install -r requirements.txt
Note: Scripts can be ran individually using main.py <script_name> if ran just as main.py the internal scheduler will take effect. This is recommended if the script will be ran in the background.
To run any of the scripts you'll need to activate the virtual environment you created earlier. To do this run the following command in your terminal:
cd /path/to/your/scripts/folder/daps
source .venv/bin/activate
python3 /path/to/your/scripts/folder/daps/main.py <optional_script_name>
Example:
cd /path/to/your/scripts/folder/daps
source .venv/bin/activate
python3 /path/to/your/scripts/folder/daps/main.py poster_renamerr
To deactivate the virtual environment
deactivate
To update the scripts to the latest version run the following command in your terminal:
cd /path/to/your/scripts/folder/daps
git pull