Hi All,
I've been trawling through the forums but haven't been able to find an answer to what im assuming is a pretty simple problem.
I'm just modifying a script, and i want to reference one of the directory watcher paths within a python script so as not to hard code the path.
Once i have that stored in a variable i only need to use it within that script so the rest should be pretty straightforward.
Thanks for any help, i love this program and i'm slowly moving all of my other automation tasks into it, the flexibility is astounding.
Cheers,
Adam
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.
Return DirectoryWatcher value within python.
Re: Return DirectoryWatcher value within python.
eg.globals.<NameOfYourVariable> should help you out. If i understood your question right.
I.e., inside modified by you plugin:
eg.globals.MyVariableAccessibleFromOtherScripts = SomeVaiable
I.e., inside modified by you plugin:
eg.globals.MyVariableAccessibleFromOtherScripts = SomeVaiable