Last active
July 27, 2022 07:29
-
-
Save eliorc/6318da3771b3db64eb6206c43c861e82 to your computer and use it in GitHub Desktop.
Adding to PYTHONPATH with .pth files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Add current folder to PYTHONPATH | |
CURRENT_FOLDER=$(pwd) | |
SITE_PACKAGES_FOLDER="$(ls -d $(poetry env info -p)/lib/python*/site-packages/)project_dir.pth" | |
echo "$CURRENT_FOLDER" > "$SITE_PACKAGES_FOLDER" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment