Hello Guest it is January 28, 2020, 09:37:25 AM

Author Topic: io.open path wit special char  (Read 118 times)

0 Members and 1 Guest are viewing this topic.

io.open path wit special char
« on: November 16, 2019, 06:58:01 AM »


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?


Re: io.open path wit special char
« Reply #1 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