#!/bin/bash INSTALLATION=0 IS_LINUX=0 IS_WINDOWS=0 if [[ -d ./venv/bin ]]; then IS_LINUX=1; fi if [[ -d ./python/Scripts ]]; then IS_WINDOWS=1; fi if [[ $IS_LINUX -eq 0 ]] && [[ $IS_WINDOWS -eq 0 ]] then echo "No Python virtual environment found..." exit 1 fi if [[ $IS_LINUX -eq 1 ]] then source ./venv/bin/activate fi if [[ $IS_WINDOWS -eq 1 ]] then function pip() { ./python/python.exe -m pip "$@" } function apt() { echo "Skipping call to apt $@ ..." } function python() { ./python/python.exe "$@" } export CUDA_PATH="$PWD/cuda126" export PATH="$PATH:$CUDA_PATH/bin" export -f pip export -f apt export -f python fi if [[ "$@" =~ --setup ]] then pip install discord.py fi if [[ "$@" =~ --bash ]] then bash exit 0 fi python -u app.py