Hi all,
Just wondering if there is a way that I can go about executing a Python program/script/.py file after an action is triggered in EventGhost? Similar to the System Execute plugin. I've tried several options with the Python Command and Python Script plugins but my knowledge on the language is limited and the python program does not have a .exe file. The interpreter is installed and I can run the program under normal conditions but I'd liked to incorporate it into an EventGhost script.
Thanks in advance.
Use EG action to execute an existing .py script
-
- Posts: 2
- Joined: Thu Jul 28, 2011 5:12 pm
Re: Use EG action to execute an existing .py script
Have you tried using a batch file?
python script:
batch file:
python script:
Code: Select all
eg.plugins.System.Execute(batch file, options, 1, False, 2, directory, False)
Code: Select all
@echooff
file.py
Re: Use EG action to execute an existing .py script
Create Python Command action and set it: execfile("file.py")