Browse Source

fix reload module

dev
BreakWa11 8 years ago
parent
commit
b812ab10bf
  1. 2
      importloader.py

2
importloader.py

@ -4,6 +4,7 @@
def load(name): def load(name):
try: try:
obj = __import__(name) obj = __import__(name)
reload(obj)
return obj return obj
except: except:
pass pass
@ -11,6 +12,7 @@ def load(name):
try: try:
import importlib import importlib
obj = importlib.__import__(name) obj = importlib.__import__(name)
importlib.reload(obj)
return obj return obj
except: except:
pass pass

Loading…
Cancel
Save