Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- [#1778](https://github.com/plotly/dash/pull/1778) DataTable: Fix React warnings stating
that each child in a list should have a unique "key" prop

- [#1895](https://github.com/plotly/dash/pull/1895) Support debug=True if native namespace-packages are present

## [2.0.0] - 2021-08-03

## Dash and Dash Renderer
Expand Down
8 changes: 7 additions & 1 deletion dash/dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -1731,12 +1731,18 @@ def enable_dev_tools(
if isinstance(package, ModuleSpec)
else os.path.dirname(package.path)
if hasattr(package, "path")
else os.path.dirname(
package._path[0] # pylint: disable=protected-access
)
if hasattr(package, "_path")
else package.filename
for package in packages
]

for i, package in enumerate(packages):
if "dash/dash" in os.path.dirname(package.path):
if hasattr(package, "path") and "dash/dash" in os.path.dirname(
package.path
):
component_packages_dist[i : i + 1] = [
os.path.join(os.path.dirname(package.path), x)
for x in ["dcc", "html", "dash_table"]
Expand Down