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.plugin" "{
    'append': ['some/dir', 'other/dir'],
    'prepend': ['some/dir', 'other/dir'],
}"

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

Configuration

The config value is a python dict literal, contains the following keys

Key Type Optional Default Meaning
append List[str] yes [] Append the list of path to sys.path
prepend List[str] yes [] Prepend the list of path to sys.path
normalize_to_root bool yes True If the path is relative, it is considered to be relative to the root beancount file, and normalized to absolute path before adding 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.

Files for beancount-syspath, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size beancount_syspath-0.2.1-py3-none-any.whl (6.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size beancount-syspath-0.2.1.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page