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.

How do I reload plugin

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
TheOgre
Posts: 7
Joined: Thu Oct 06, 2011 1:52 am

How do I reload plugin

Post by TheOgre »

Hi Guys,

It's my first day trying to write a plugin, so go easy on me..

After I have made changes to the plugins .py file, what's the best way to get it to reload?

Looks like I either have to delete the plugin (along with any actions) from the tree. Or close EG and restart it.

Is there an easier way to just do a reload/refresh?
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: How do I reload plugin

Post by Pako »

TheOgre wrote:Is there an easier way to just do a reload/refresh?
I do not know if it's the easiest way, but I use restart EventGhost from the menu.
It's simple. Just run the program with a command line argument -debug:
EG-Debug_1.png
EG-Debug_2.png
EG-Debug_2.png (144.44 KiB) Viewed 3747 times
Pako
bruinlax
Posts: 26
Joined: Thu Sep 29, 2011 4:31 pm

Re: How do I reload plugin

Post by bruinlax »

thanks. I was having the same problem.
cfull1
Experienced User
Posts: 124
Joined: Thu Aug 19, 2010 4:52 am

Re: How do I reload plugin

Post by cfull1 »

When I try to start it with -debug it just freezes.
Any ideas?

Also I noticed the restartprogram from the debug menu. Is there a way to call that from a python script?
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: How do I reload plugin

Post by krambriw »

When I try to start it with -debug it just freezes
For me as well, I thought I had a local problem

Best regards, Walter
cfull1
Experienced User
Posts: 124
Joined: Thu Aug 19, 2010 4:52 am

Re: How do I reload plugin

Post by cfull1 »

Figured mine out.
I traced it back to a crappy plugin I threw together.

C:\Users\Carson\AppData\Roaming\EventGhost\Log.txt

Removed the plugin and it worked fine

Also Figured out how to do the restart:

Code: Select all

eg.app.Restart()
Post Reply