Program Filter EMC2_BASE Variable
16 Sep 2013 23:11 #38888
by ljask
Program Filter EMC2_BASE Variable was created by ljask
I would like to make use of the Python Program Filters, but... When running the holecircle.py example, at line 2 it is looking for the environment variable EMC2_HOME. As a test, I defined it in [EMC] section of the axis.ini file simply setting it to ~/. This threw a KeyError exception, at file /usr/lib/python2.6/UserDict.py, line 22 in __getitem__.
What is the correct value of this variable, and where is the recommended place to set it.
I just downloaded the latest distro of Ubuntu 10.04 and LinuxCNC 2.5.3.
Thanks!!
What is the correct value of this variable, and where is the recommended place to set it.
I just downloaded the latest distro of Ubuntu 10.04 and LinuxCNC 2.5.3.
Thanks!!
Please Log in or Create an account to join the conversation.
16 Sep 2013 23:31 #38889
by ljask
Replied by ljask on topic Program Filter EMC2_BASE Variable
Well, I solved my own problem. Consistent with the renaming of everything EMC2 to LinuxCNC, the key in the dictionary was renamed to LINUXCNC_HOME. Changing the .py code to look for that name was successful.
Sorry for the trouble, but I hope this helps someone else.
Sorry for the trouble, but I hope this helps someone else.
Please Log in or Create an account to join the conversation.
Time to create page: 0.055 seconds