blais / snakefood

Python Dependency Graphs
GNU General Public License v2.0
75 stars 17 forks source link

relative imports not included in sfood output #2

Open blais opened 8 years ago

blais commented 8 years ago

Original report by tompaton (Bitbucket: tompaton, GitHub: tompaton).


given a.py that includes:

from . import b

sfood-imports correctly picks up this import:

$ sfood-imports a.py
a.py:1: .b

but sfood doesn't seem to import it and outputs a warning:

WARNING     :     Line 1: Could not import module ''