Metadata-Version: 2.1
Name: fsimport
Version: 0.0.1
Summary: Import source file from the file system for Python
Home-page: https://github.com/pavelkukov/fsimport
Author: Pavel Kukov
Author-email: pavelkukov@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# fsimport
Import source file from the file system for Python

This library is a very simple wrapper around

```python
spec = importlib.util.spec_from_file_location('module', str('/full/path/to/module'))
module_inst = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module_inst)
```

It allows for a convenient way to import files based on the file system path. The path is relative to the caller script.

Usage:

```python
import fsimport

include_lv0 = fsimport('../../include_lv0')
include_lv1 = fsimport('../include_lv1')
include_lv2 = fsimport('./include_lv2')
include_lv3 = fsimport('./lv3/include_lv3')
```


