3
1
I have a simple python project located in
c:\users\myuser\pythonproject\
I also have the latest version of python installed, and VSCode is running inside of ..\pythonproject\
When using the integrated terminal inside of VSCode to run a python script (right click > 'Run Python File in Terminal'), one would expect the following command:
python myfile.py
instead, VSCode specifies the absolute file path for not only Python.exe, but the file that is being run (despite the fact that it's being run inside the CWD:
C:/Users/myuser/AppData/Local/Programs/Python/Python37-32/
python.exe "c:/Users/myuser/pythonproject/myfile.py"
this seems cumbersome and clutters up my terminal. Is there any way to get VSCode to simplify the above verbose command to use relative commands (eg 'python')?
Thanks for any input. This may seem like a minor nitpick, but using this console all day has made me resent having to scroll through all this unnecessary info (especially since my actual project directory is much more complex than my example, and so longer).
Try to add the folder containing python.exe in path variable. – Biswapriyo – 2019-09-09T20:33:40.857