Skip to content

poly create: produces invalid Python code when the --name contains a path #46

@DavidVujic

Description

@DavidVujic

Describe the bug
The command will create a component with imports, but with invalid Python, when using the create command like this: poetry poly create component --name=foo/bar

The output will be something like:

from top_ns.foo/bar import core

Described in #45

Expected behavior
The command should generate python files with correct import statements, such as:

from top_ns.foo.bar import core

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions