twibiral / obsidian-execute-code

Obsidian Plugin to execute code in a note.
MIT License
1.09k stars 66 forks source link

[BUG] Use `wslpath` to convert Windows path rather than prepend the `/mnt/c` prefix #363

Open viocha opened 3 months ago

viocha commented 3 months ago

Describe the bug I have changed the mount location of C drive in my WSL. When running bash code, the program got wrong path.

Software Version

To Reproduce

Expected behavior

Screenshots It cannot find the file and the error shows 'No such file or directory'. image

The correct path can be acquired by using wslpath command in WSL image

Additional context Add any other context about the problem here.