How to run some environment setting cmd before pytest in VSCode #20163
-
I was running VSCode on a remote server which most environments are loaded by |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Not specifically. Can you run the commands before you load VS Code? Otherwise you can try to use a debugging configuration to tweak things and run your tests under a debugger. The last option I can think of is specifying a different script for the path to pytest and have that do the loading for you. Beyond that the only thing I can think of is using something like |
Beta Was this translation helpful? Give feedback.
Not specifically. Can you run the commands before you load VS Code? Otherwise you can try to use a debugging configuration to tweak things and run your tests under a debugger. The last option I can think of is specifying a different script for the path to pytest and have that do the loading for you.
Beyond that the only thing I can think of is using something like
subprocess
to run the command for you (assuming it doesn't need to set environment variables).