19 lines
336 B
Bash
Executable File
19 lines
336 B
Bash
Executable File
[ -d venv ]
|
|
FIRST_RUN=$?
|
|
|
|
# Create and enter virtual environment
|
|
if (( $FIRST_RUN )); then
|
|
echo Creating virtual environment
|
|
python3.7 -m venv venv
|
|
fi
|
|
source venv/bin/activate
|
|
|
|
# Install required python packages
|
|
echo Installing required Python packages
|
|
pip install -Ur requirements.txt
|
|
|
|
|
|
function run() {
|
|
python -m nightr
|
|
}
|