Skip to main content

Manipulate sys.path within the beancount file

Project description

beancount-syspath

Manipulate sys.path from within the beancount file. This is a plugin for Beancount, a double-entry bookkeeping computer language.

Installation

Install via pip

pip install beancount-syspath

Usage

Prepend list of paths

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

or append list of paths

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beancount-syspath-0.1.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

beancount_syspath-0.1.0-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page