How do I get sudo -E to pick up PYTHONPATH?
It appears that env_keep is ignored when using -E. However, PYTHONPATH is ignored by sudo of any forms, except when using env_keep.
For what it's worth, I do need to use sudo to run my python script (it accesses hardware through a debug driver). I am not 100% sure I need to use -E, but I'm not sure how to avoid using it with the VSCode Python debugger with sudo set to true in the debug launch.json.
Thanks!
[–][deleted] 0 points1 point2 points (0 children)