Metadata-Version: 2.1
Name: beancount-syspath
Version: 0.1.0
Summary: Manipulate sys.path within the beancount file
Home-page: https://github.com/Aetf/beancount-syspath
License: MIT
Keywords: beancount,plugin,syspath
Author: Aetf
Author-email: aetf@unlimited-code.works
Requires-Python: >=3.6,<4.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Plugins
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Utilities
Project-URL: Repository, https://github.com/Aetf/beancount-syspath
Description-Content-Type: text/markdown

# beancount-syspath

Manipulate `sys.path` from within the beancount file. This is a plugin for
[Beancount](http://furius.ca/beancount/
), a double-entry bookkeeping computer language.

## Installation

Install via pip

```shell
pip install beancount-syspath
```

## Usage

Prepend list of paths

```beancount
plugin "beancount_syspath.prepend" "[
    'some/dir',
    'other/dir'
]"
```

or append list of paths

```beancount
plugin "beancount_syspath.append" "[
    'some/dir',
    'other/dir'
]"
```

Place the directive before other plugin loading ones, so they can make use of the updated `sys.path`.

The config value is a python list literal, which will be evaluated by `ast.literal_eval`, and then
prepended/appended to `sys.path`.

