Commit d378f770 authored by payno's avatar payno
Browse files

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

parent a25e4d2b
...@@ -56,14 +56,14 @@ class Parser(object): ...@@ -56,14 +56,14 @@ class Parser(object):
""" """
aliases = {} aliases = {}
try: try:
import pypushflowaddon import ppfaddon
except ImportError: except ImportError:
return aliases return aliases
else: else:
import pkgutil import pkgutil
for importer, modname, ispkg in pkgutil.iter_modules(pypushflowaddon.__path__): for importer, modname, ispkg in pkgutil.iter_modules(ppfaddon.__path__):
try: try:
mod_name = '.'.join((pypushflowaddon.__name__, modname, 'aliases')) mod_name = '.'.join((ppfaddon.__name__, modname, 'aliases'))
module = importlib.import_module(mod_name) module = importlib.import_module(mod_name)
except ImportError: except ImportError:
_logger.warning(modname + ' does not fit the add-on design, skip it') _logger.warning(modname + ' does not fit the add-on design, skip it')
......
Supports Markdown
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