Skip to content

Python Import helper: "src." included in import paths #53

@TimeLex

Description

@TimeLex

Hi! I have a Python project where the packages are located in the src folder. When I want to import something with Python Import Helper, it always imports from src.package.etc, but only package.etc should be in the import path for the import to work.

My pyproject.toml file contains:

[tool.setuptools]
package-dir = { “” = “src” }

[tool.setuptools.packages.find]
where = [“src”]

so that the src folder is used for the packages.

Have I set something up incorrectly, or is this a Bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions