Skip to content

Commit

Permalink
Merge pull request #10286 from archesproject/fix-function-registration
Browse files Browse the repository at this point in the history
Fix function registration
  • Loading branch information
chrabyrd authored Nov 21, 2023
2 parents 7a4b40a + ced7635 commit d736393
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arches/management/commands/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,10 @@ def load_extensions(package_dir, ext_type, cmd):
else:
logger.info("Not loading {0} from package. Extension already exists".format(components[0]))

modules = glob.glob(os.path.join(extension, "*.json"))
modules = []
if not os.path.isdir(extension):
modules.extend(extension)
modules.extend(glob.glob(os.path.join(extension, "*.json")))
modules.extend(glob.glob(os.path.join(extension, "*.py")))

if len(modules) > 0:
Expand Down

0 comments on commit d736393

Please sign in to comment.