- Posted on
Mon Jun 06, 2016 2:19 am
-
RedYuriPrime
offline
-
- Posts: 58
- Joined: Oct 14, 2014
- Location: Oxford
Thanks Joe. However have tried the format you and Jay provided, and unfortunately it doesn't work, giving:
Script Error Core.py: invalid syntax
Script Error around line 83 - "/Library/Application\ Support/Perceptive\ Automation/Indigo\ 6/IndigoPluginHost.app/Contents/MacOS/IndigoPluginHost -x /Users/geoff/Documents/Indigo/ActivePython/TestEasyDAC.py"
Have resorted to the following; it does seem to work, although I do need to do further testing:
###
import subprocess
def rRun(module):
host ="/Library/Application Support/Perceptive Automation/Indigo 6/IndigoPluginHost.app/Contents/MacOS/IndigoPluginHost"
switch ="-x"
modulePath="/Users/geoff/Documents/Indigo/ActivePython/" + module
subprocess.Popen([host,switch,modulePath])
rRun("TestEasyDAC.py")
###
Will update in a few days to confirm if there are any unexpected side effects.
Regards,
Geoff
Z-wave system with 80+ devices, Indigo7 on a dedicated MacMini
Controlling lighting, heating, hotwater, security; but still a lot to learn ...