DrLex0 / FFCP-GCodeSnippets

G-Code and scripts for using the FlashForge Creator Pro with PrusaSlicer (Slic3r)
https://www.dr-lex.be/software/ffcp-slic3r-profiles.html?r=gh
Creative Commons Attribution 4.0 International
58 stars 16 forks source link

Script handling of WSL path conversion #1

Closed zervin closed 5 years ago

zervin commented 5 years ago

The WSL path conversion doesn't seem to handle spaces in the user account path. C:\Users\Some Name becomes /mnt/c/Users/Some, which fails.

zervin commented 5 years ago

Edited line 179 to use the new wslpath command available in the latest WSL updates, inputfile=$(wslpath -a "$1")

DrLex0 commented 5 years ago

I fixed this and added some extra checks. To make this work, the .bat file also needs to be updated (see README).