On Fri, Dec 01, 2017 at 11:41:13AM +0000, andy pugh wrote:
> In remap code you can use:
> from intepreter import *
>
> and have acces to the (largely undocumented) interpreter Python interface:
> https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/rs274ngc/interpmodule.cc
>
> But how can you import that module into Python that is _not_ part of a
> G-code remap ?
It appears that the answer is insane.
import gcode
try:
gcode.parse("", None)
except AttributeError:
pass
import interpreter
note: I'm not sure you can do anything useful with items from the
interpreter module after doing this.
Have a nice day,
Jeff
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers