Commit d378f770 authored by payno's avatar payno

[parser] fix typo, the add on are named ppfaddon instead of pypushflowaddon

parent a25e4d2b
......@@ -56,14 +56,14 @@ class Parser(object):
"""
aliases = {}
try:
import pypushflowaddon
import ppfaddon
except ImportError:
return aliases
else:
import pkgutil
for importer, modname, ispkg in pkgutil.iter_modules(pypushflowaddon.__path__):
for importer, modname, ispkg in pkgutil.iter_modules(ppfaddon.__path__):
try:
mod_name = '.'.join((pypushflowaddon.__name__, modname, 'aliases'))
mod_name = '.'.join((ppfaddon.__name__, modname, 'aliases'))
module = importlib.import_module(mod_name)
except ImportError:
_logger.warning(modname + ' does not fit the add-on design, skip it')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment