Skip to content

Commit 89f1e6b

Browse files
authored
Merge pull request #1895 from lschmelting/dev
Support debug=True if native namespace-packages are present
2 parents 998def9 + eb85b76 commit 89f1e6b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
195195
- [#1778](https://github.com/plotly/dash/pull/1778) DataTable: Fix React warnings stating
196196
that each child in a list should have a unique "key" prop
197197

198+
- [#1895](https://github.com/plotly/dash/pull/1895) Support debug=True if native namespace-packages are present
199+
198200
## [2.0.0] - 2021-08-03
199201

200202
## Dash and Dash Renderer

dash/dash.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1731,12 +1731,18 @@ def enable_dev_tools(
17311731
if isinstance(package, ModuleSpec)
17321732
else os.path.dirname(package.path)
17331733
if hasattr(package, "path")
1734+
else os.path.dirname(
1735+
package._path[0] # pylint: disable=protected-access
1736+
)
1737+
if hasattr(package, "_path")
17341738
else package.filename
17351739
for package in packages
17361740
]
17371741

17381742
for i, package in enumerate(packages):
1739-
if "dash/dash" in os.path.dirname(package.path):
1743+
if hasattr(package, "path") and "dash/dash" in os.path.dirname(
1744+
package.path
1745+
):
17401746
component_packages_dist[i : i + 1] = [
17411747
os.path.join(os.path.dirname(package.path), x)
17421748
for x in ["dcc", "html", "dash_table"]

0 commit comments

Comments
 (0)