I use crnn-pytorch as a submodule with name pytorch_crnn. The project has no package namespace so I've done a quickfix with a relative import to fix import problem.
The proper way to do this is to introduce single root package (+ setup.py) and move all code except the scripts under this package. Then code can be imported as from root_package_name.foo import bar.
Hi,
I use
crnn-pytorch
as a submodule with namepytorch_crnn
. The project has no package namespace so I've done a quickfix with a relative import to fix import problem.The proper way to do this is to introduce single root package (+ setup.py) and move all code except the scripts under this package. Then code can be imported as
from root_package_name.foo import bar
.