Last active
November 21, 2024 14:30
-
-
Save royratcliffe/cbb98a962e0cbffe0804f79a9c3395c5 to your computer and use it in GitHub Desktop.
Python
This file contains hidden or 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
if IS_WINDOWS: | |
import os | |
os.environ['PATH'] += ';' + os.path.dirname(__file__) |
This file contains hidden or 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
# Run a Python script in a virtual environment as superuser. | |
sudo -E env PATH=$PATH python script.py |
This file contains hidden or 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
{ | |
"debugpy.debugJustMyCode": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment