Guitheg / ritl

Relatives Import Tool

Home Page:https://pypi.org/project/ritl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ritl

Relatives Import Tool : How many time I was blocked by relative import problems. This time is over now...

Installation

pip install ritl

Usage

We just need to put :

from ritl import relative_import
relative_import.add_rel_imp()

and we can import easily our modules in the same directory of our file. Wherever you execute it.

You can also add more directories, relative to your file directory :

relative_import.add_rel_imp("../utils")

This will allow you to relatively import your modules from other directory in utils

After this, you just have to import your modules

About

Relatives Import Tool

https://pypi.org/project/ritl/

License:MIT License


Languages

Language:Python 100.0%