File size: 285 Bytes
06f0c30
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
VENV_DIR=".venv"

#activate if exists
if [ -d "$VENV_DIR" ]; then
    source "$VENV_DIR/Scripts/activate"
    pip freeze >> requirements.txt
    echo "requirements generated from virtual env: $VENV_DIR"
else
    echo "error: virtual env : $VENV_DIR not found"
    exit 1
fi