Running "source" command before the script in the debug configuration

Hi,

In the configuration page, I can enter python script and options. For the source command, I see "Before launch: Activate tool window" and I select "Run external tool". However, when I put source in front of the "Program" and file.rc in front of the "Arguments", I get the error that "source program is not recognized".
 
Problem is that source command is a shell internal and it is not a program like ls or grep. I didn't find information on how to use source command.
 
Please see the pictures below:
 
 
 
 
 
 
 
How can I fix that?
Any idea?
 
1 comment
Comment actions Permalink

Hmm, I don't think sourcing like that would work. Maybe use other methods, like python-dotenv (https://pypi.org/project/python-dotenv/) for example? 

Or you can add environment variables directly to your run/debug configuration.

0

Please sign in to leave a comment.