formulahendry / formulahendry/vscode-code-runner
wsl terminal args issue when it use python interpreter on windows.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 351
- PR merge metrics
- No merged PRs in 30d
Description
I am using wsl as vscode default terminal. but I want execute my python script using window python interpreter.
```python
{
...
"code-runner.executorMap": {
"python": "/mnt/c/Python27_64/python.exe -u",
},
"code-runner.runInTerminal": true,
...
}
```
above is my custom option to do what I want. but I got argument error.
```
root@local:~/home/test# /mnt/c/Python27_64/python.exe -u "/mnt/c/Users/user/home/test.py"
C:\Python27_64\python.exe: can't open file '/mnt/c/Users/user/home/test.py': [Errno 2] No such file or directory
```
windows python interpreter use windows path form for the script which passed first argument. so if I change command line by hand then it works.
```
root@local:~/home/test# /mnt/c/Python27_64/python.exe -u "c\\Users\\user\\home\\test.py"
```
It would be great if there is way to change wsl path to window path form. how can I do that? or where can I hook code runner's process? and I think it would be nice if code runner support contrary case.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.