Esempio n. 1
0
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()
Esempio n. 2
0
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()
Esempio n. 3
0
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()