Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
If you are able to run python code, use this to add python to your path on windows
import sys
from pathlib import Path
# Get the path to the Scripts directory
scripts_path = Path(sys.base_prefix) / "Tools" / "Scripts"
# Append it to python's import path so we can grab it
# Import the main function from the win_add2path script
from win_add2path import main
# run the main function to add python to out path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment