On 01/23/2017 12:42 PM, andy pugh wrote: > What is the requirement to be able to import emccanon? > It seems to work in remap code, and in the tests (for example > https://github.com/LinuxCNC/linuxcnc/blob/af15a4d90e1d51d5309db65fe1c9511e486df411/tests/remap/fail/canon_error/remap.py > ) > But if I try "import emccanon" in a GladeVCP handler, it exists with: > import error: No module named emccanon
I think the Python module called emccanon is built into the C library called librs274 (from src/emc/rs274ngc/canonmodule.cc). I think therefore emccanon is only accessible to Python code running in a Python interpreter linked with that C library, for example the one in Task. emccanon is *not* accessible to the normal Python interpreter that you get when you run 'python' on the command line. At least that's my understanding after looking at the code for 15 minutes. -- Sebastian Kuzminsky ------------------------------------------------------------------------------ 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
