Skip to content

Path translation when using WSL bash in integrated terminal  #40

@ricek

Description

@ricek

Environment data

VS Code version: 1.18.0
Python Extension version: 0.8.0
Python Version: 3.6.3
OS and version: Windows 10 v1709 build 16299.19

Actual behavior

/usr/bin/python3 d:/Web/test.py

Expected behavior

/usr/bin/python3 /mnt/d/Web/test.py

Steps to reproduce:

  • In settings.json, add WSL and set python path to the one installed on WSL
  • "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\bash.exe"
  • "python.pythonPath": "/usr/bin/python3"
  • Run Python File in Terminal

Logs

Output from Python output panel

/usr/bin/python3: can't open file 'd:/Web/test.py': [Errno 2] No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions