Windows path separator not understood in shell files when run with --shellfile=
Hi, I’m running latest beta (8.994). However when flatcam is started on Windows with FlatCAM.exe --shellfile=c:\file.txt it then parses any paths contained within c:\file.txt incorrectly. Specifically this command for example works when pasted into the shell window in running flatcam:
open_gerber "Y:\projects\electronics projects\Gerber\SingleSided2.GTL" -outname GTL
Same with double backslash version
open_gerber "Y:\\projects\\electronics projects\\Gerber\\SingleSided2.GTL" -outname GTL
However when run on startup it results in the following error:
FlatCAM 8.994 - Type >help< to get started
[ERROR] Failed to open file: Y:projectselectronics projectsGerberSingleSided2.GTL
New object with name: GTL. 0.001000 seconds executing initialize().
[ERROR] Failed to open file: /GTL
New object with name: GTL. 0.000000 seconds executing initialize().
[ERROR]Open Gerber failed. Probable not a Gerber file.
Comments (2)
-
reporter -
reporter - changed status to resolved
- Log in to comment
Actually it works with double backslashes, I haven’t saved the script after adding them.