-
To setup the environment, first create a virtual environment.
python -m venv .rename-venv
-
Next, install Python dependencies.
./.rename-venv/Scripts/python -m pip install -r requirements.txt
-
Create a bin folder with a batch file to run the script.
mkdir bin notepad bin/pandpk.bat
-
Replace the contents of the batch file with the following.
@echo off path-to-python path-to-rename-script %*
-
Add the location of the batch file to environment variables.
-
Restart your terminal.
Just open a terminal in the correct folder and run the command.
PS> pandpk