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.
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Use EG action to execute an existing .py script
-
williamp0044
- 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.pyRe: Use EG action to execute an existing .py script
Create Python Command action and set it: execfile("file.py")