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 » Thu Oct 06, 2011 1:58 am

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 » Thu Oct 06, 2011 12:54 pm

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 4166 times
Pako

bruinlax
Posts: 26
Joined: Thu Sep 29, 2011 4:31 pm

Re: How do I reload plugin

Post by bruinlax » Fri Oct 07, 2011 9:08 pm

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 » Wed Oct 12, 2011 1:29 pm

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 » Wed Oct 12, 2011 5:18 pm

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 » Wed Oct 12, 2011 7:27 pm

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