Skip to content

Commit 04f7761

Browse files
committed
Relative import the components
1 parent dabafff commit 04f7761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dash/development/component_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ 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('from .{0} import {0}'.format(x) for x in components),
7272
',\n'.join(' "{}"'.format(x) for x in components)
7373
)
7474
).lstrip())

0 commit comments

Comments
 (0)