Remove reload feature
As reload shoudl be done in a particular order, to keep valid types, and because maintaining such system is too complex (currently, it doesn't work for a while), now, a reload is just reload configuration file (and possibly modules)
This commit is contained in:
parent
fb670b0777
commit
4d0260b5fc
12 changed files with 1 additions and 245 deletions
|
|
@ -16,16 +16,3 @@
|
|||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue