fixed ugly bug regarding KeyError "class" not in class item :)
thank you StackOverflow, again!
This commit is contained in:
parent
c4b23f6eab
commit
99b808a0de
1 changed files with 3 additions and 3 deletions
|
|
@ -105,11 +105,11 @@ class ConfigParser:
|
|||
"""
|
||||
mods = self._loadedMods[modPart]
|
||||
if clazz in mods:
|
||||
return mods["class"]
|
||||
return mods[clazz]
|
||||
else:
|
||||
#mod = __import__(clazz)
|
||||
path = join("lib", modPart, clazz + ".py")
|
||||
mod = imp.load_source(clazz, path)
|
||||
p = join("lib", modPart, clazz + ".py")
|
||||
mod = imp.load_source(clazz, p)
|
||||
mods[clazz] = mod
|
||||
return mod
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue