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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for beancount_syspath-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1337d7aecebbf0ed38dc24540fcd39025d7d8cf9eca71545b03ab4f1b1d3ec1 |
|
MD5 | 6a9bc51bafeb68ec9b70e4e907263f9c |
|
BLAKE2b-256 | b2ba02ab4ab59b9b82d56e591c61ed0a1d216c64b796cf05ec5aa9fb55818a70 |