Skip to content

Commit

Permalink
Use entry_point.module_name instead of entry_point.name for looking u…
Browse files Browse the repository at this point in the history
…p the bundles.
  • Loading branch information
Marina Samuel authored and Allen Short committed Mar 26, 2019
1 parent 17acb59 commit f1d9fa0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions bin/bundle-extensions
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ os.environ["EXTENSIONS_DIRECTORY"] = EXTENSIONS_RELATIVE_PATH
for entry_point in iter_entry_points('redash.extensions'):
# This is where the frontend code for an extension lives
# inside of its package.
content_folder_relative = os.path.join(
entry_point.name, 'bundle')
(root_module, _) = os.path.splitext(entry_point.module_name)

split_module_path = entry_point.module_name.split(os.extsep)
root_module = split_module_path.pop(0)

content_folder_relative = os.path.join(os.path.join(
*split_module_path), 'bundle')

if not resource_isdir(root_module, content_folder_relative):
continue
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ disposable-email-domains
# It is not included by default because of the GPL license conflict.
# ldap3==2.2.4
gevent==1.4.0
redash-stmo>=2018.9.1
redash-stmo>=2018.12.0

0 comments on commit f1d9fa0

Please sign in to comment.