Skip to content

Commit

Permalink
dirname replacement only for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
skelly37 authored and phw committed Dec 9, 2022
1 parent 64934d5 commit 7813493
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion picard/pluginmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ def _load_plugin_from_directory(self, name, plugindir):
self.plugin_error(name, error, name, [plugindir])
return None

module_pathname = os.path.dirname(info.origin)
module_pathname = info.origin
if module_pathname.endswith("__init__.py"):
module_pathname = os.path.dirname(module_pathname)

plugin = None
try:
Expand Down

0 comments on commit 7813493

Please sign in to comment.