Skip to content

Commit 82e22c3

Browse files
committed
Relative import the components
1 parent dabafff commit 82e22c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dash/development/component_generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def generate_components(component_src, project_shortname):
6868
{}
6969
]
7070
'''.format(
71-
'\n'.join('from {0} import {0}'.format(x) for x in components),
71+
'\n'.join(
72+
'from .{0} import {0}'.format(x) for x in components),
7273
',\n'.join(' "{}"'.format(x) for x in components)
7374
)
7475
).lstrip())

0 commit comments

Comments
 (0)