import-here

`import` module from same directory.


Keywords
math
Install
pip install import-here==0.3

Documentation

Import Here

import module from same directory.

Usage

from import_here import import_module_here, export_all

# import file as a module
lib = import_module_here("foo.bar.com.py", "lib", file=__file__)
# export the exported variables in the lib's scope into current module scope
export_all(lib, locals())