import-parent-dir

Add parent direcotry to sys.path to import files.


License
MIT
Install
pip install import-parent-dir==0.1.1

Documentation

add_parent_path

Usage

# Just add path
add_parent_path(1)

# Append to syspath and delete when the exist of with statement.
with add_parent_path(1):
   # Import modules in the parent path
   pass

Installation

Requirements

Compatibility

Licence

Authors

add_parent_path was written by fx-kirin <fx.kirin@gmail.com>_.