Light Mode
Dark Mode
Run code using VSCode. !/usr/bin/env problem

I´m using VSCode on Windows as IDE.

Once I wrote the solution and press Run Code buttonm, the following command is fired:

/usr/bin/env checkio --domain=py run all-the-same "c:\projects\pycheckiosolutions\Home\allthesame.py"

The command fails due to the wrong path. So I have to remove this line and hit Run Code again. This time the program runs with success with the following command:

python -u "c:\projects\pycheckiosolutions\Home\allthesame.py"

Is there a way to configure VSCode to run these python files without I have do remove the header?

  • ida
Created: Sept. 6, 2019, 3:56 p.m.
Updated: Sept. 12, 2019, 8:07 a.m.
0
3
User avatar
educostadev