tilboerner / depx

Examine and visualize dependencies used by Python modules 🔍
Other
19 stars 3 forks source link

Resolve relative import names #15

Closed tilboerner closed 5 years ago

tilboerner commented 5 years ago

This allows us to create proper to_module names for relative imports. For example:

- project
  |-- package
      |-- __init__
      |-- a_module
      |-- b_module

If a_module does from . import b_module, we will now get the properly qualified

'to_module': 'package.b_module'
tilboerner commented 5 years ago

Thanks for fixing the tests! :)