Include some forgotten module in reload process

This commit is contained in:
nemunaire 2015-10-30 22:18:48 +01:00
commit c6aa38147b
5 changed files with 29 additions and 0 deletions

View file

@ -16,3 +16,16 @@
from nemubot.datastore.abstract import Abstract
from nemubot.datastore.xml import XML
def reload():
global Abstract, XML
import imp
import nemubot.datastore.abstract
imp.reload(nemubot.datastore.abstract)
Abstract = nemubot.datastore.abstract.Abstract
import nemubot.datastore.xml
imp.reload(nemubot.datastore.xml)
XML = nemubot.datastore.xml.XML