Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: matrix on November 16, 2019, 06:58:01 AM

Title: io.open path wit special char
Post by: matrix on November 16, 2019, 06:58:01 AM


Hello,

I need change some line from a Gcode every time I load on mach4, so I made a script that
open this file, replace the lines I want and load to mach4 without problem.


So, the problem is, if the Gcode Path (on windons) have some special char like "c:Users\Alçada\test.nc" , the "ç" char dont work
on "file,err = io.open( "c:Users\Alçada\test.nc")"

Any way to solve this?

Thanks




Title: Re: io.open path wit special char
Post by: KatzYaakov on November 18, 2019, 08:50:06 PM
yes,replace the path or file name
we have the same with our language(Hebrew)
can use it as file name ,as any button or field   on screen,but not as folder ,not as any word inside the G code
i even didnt ask mach for this because i think its not so big deal to use only English letter inside gcode file
or folder