OctoLinker/OctoLinker

Relative imports in python?

Open

#357 建立於 2017年5月3日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)HTML (5,212 star) (325 fork)batch import
featurehelp wanted

描述

Is there any interest in adjusting the code for Python so it can handle relative imports? It would be great if the plugin could link back to files within the current repo. Ideally recognizing the follow constructions:

from . import module
from .module import object
from ..parent_module import object
import .module
from packagename import module # I recognize this one would be trickier

貢獻者指南

Relative imports in python? · OctoLinker/OctoLinker#357 | Good First Issue