Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Name clash between input file and system file leads to incorrect dependency tree. #25

@rchen152

Description

@rchen152

Example:

$ cat abc.py
import abc
$ importlab --tree abc.py 
Reading 1 files
Source tree:
cycle {
    abc.py
}

If I rename the file to anything else, importlab generates the correct source tree:

Source tree:
+ foo.py
    :: abc.py
        :: _weakrefset.py

I'm running importlab-0.3.0 under Python 3.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions