def starttask(): global pytask import emc ini = emc.ini(emctask.ini_filename()) t = ini.find("PYTHON", "PYTHON_TASK") if int(t) if t else 0: pytask = customtask.CustomTask()
def starttask(): global pytask try: import emc except ImportError: import linuxcnc as emc # ini only ini = emc.ini(emctask.ini_filename()) t = ini.find("PYTHON", "PYTHON_TASK") if int(t) if t else 0: pytask = customtask.CustomTask()
def starttask(): global pytask try: import lbv except ImportError: import labvcnc as lbv # ini only ini = lbv.ini(lbvtask.ini_filename()) t = ini.find("PYTHON", "PYTHON_TASK") if int(t) if t else 0: pytask = customtask.CustomTask()