EDCD / EDMarketConnector

Downloads commodity market and other station data from the game Elite: Dangerous for use with all popular online and offline trading tools.
GNU General Public License v2.0
996 stars 156 forks source link

Investigate ability to reload plugin in the fly #532

Open Athanasius opened 4 years ago

Athanasius commented 4 years ago

Developers working on plugins shouldn't have to restart EDMC entirely when making code edits to their plugin. Let's see if we can provide a way to safely reload plugins.

This might end up also implementing a plugin 'shutdown' method.

A-UNDERSCORE-D commented 4 years ago

Hot loading plugins is doable, though it can be finiky. you can reload python modules fine, but there is no "unload this module" or "replace all instances of x with instances of y" across that reload, so eg for hooks those need to be tracked and removed/readded as needed.