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 jezdez committed Jan 25, 2019
1 parent 0bcab1e commit 6f4bfdb
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 @@ -54,4 +54,4 @@ disposable-email-domains
# Uncomment the requirement for ldap3 if using ldap.
# It is not included by default because of the GPL license conflict.
# ldap3==2.2.4
redash-stmo>=2018.9.1
redash-stmo>=2018.12.0

0 comments on commit 6f4bfdb

Please sign in to comment.