opentelekomcloud / python-otcclient

(Obsolete) Python bindings to the T-Systems OTC API
MIT License
15 stars 20 forks source link

py_mod = imp.load_compiled(mod_name, filepath) in pluginmanager.py will never be executed #32

Closed junessi closed 7 years ago

junessi commented 7 years ago

I got this error:

Traceback (most recent call last):
......
File "....../otcclient/core/pluginmanager.py", line 26, in load_from_file
    class_inst = getattr(py_mod, mod_name)()
UnboundLocalError: local variable 'py_mod' referenced before assignment

please fix the logic and make it run.

zsoltn commented 7 years ago

This BUG can not reproduce anymore. Plugin architecture rewrited ( 0.3.25 - ) to support INDEPENDENT plugins ( plugin handler ".py" and templates in separate directory.