Skip to content

Commit 15b3e95

Browse files
author
Lukas Schmelting
committed
Support debug=True if namespace-packages are present
1 parent 0f1b299 commit 15b3e95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dash/dash.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1731,12 +1731,14 @@ 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(package._path[0])
1735+
if hasattr(package, "_path")
17341736
else package.filename
17351737
for package in packages
17361738
]
17371739

17381740
for i, package in enumerate(packages):
1739-
if "dash/dash" in os.path.dirname(package.path):
1741+
if hasattr(package, "path") and "dash/dash" in os.path.dirname(package.path):
17401742
component_packages_dist[i : i + 1] = [
17411743
os.path.join(os.path.dirname(package.path), x)
17421744
for x in ["dcc", "html", "dash_table"]

0 commit comments

Comments
 (0)