init and some qol stuff for a modpack maker

This commit is contained in:
Joey Eamigh
2023-06-20 20:54:41 -04:00
commit 1160a10a3a
15 changed files with 460 additions and 0 deletions

18
venv.ps1 Normal file
View File

@@ -0,0 +1,18 @@
# Check for python3 or python
if (Get-Command "python3") {
$python = "python3"
} else {
$python = "python"
}
# Check if .venv directory exists
if (-Not (Test-Path "./.venv")) {
& $python -m venv .venv
}
# Activate the virtual environment
. ./.venv/bin/Activate.ps1
# Install required packages
& $python -m pip install --upgrade pip
& $python -m pip install -r requirements.txt