Files
oncall-netops/utils/set_pythonpath.sh
T
2025-02-27 20:32:54 +00:00

10 lines
297 B
Bash
Executable File

#!/bin/bash
# Get the directory of the current script
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Set the PYTHONPATH to the root directory of the project
export PYTHONPATH="$SCRIPT_DIR:$PYTHONPATH"
# Print the PYTHONPATH for debugging
echo "# PYTHONPATH is set to: $PYTHONPATH"