diff options
author | Matthias Baumgartner <dev@igsor.net> | 2023-04-17 18:47:58 +0200 |
---|---|---|
committer | Matthias Baumgartner <dev@igsor.net> | 2023-04-17 18:47:58 +0200 |
commit | be6027859c815e18b08a49ca1a45df3fc0aac301 (patch) | |
tree | e978249655fcab58f9ee1479c268ca8b06af7e8d /bsie/apps/_loader.py | |
parent | af81318ae9311fd0b0e16949cef3cfaf7996970b (diff) | |
parent | aefd0cb4fa1a949beabc51e88a5c46843043a439 (diff) | |
download | bsie-be6027859c815e18b08a49ca1a45df3fc0aac301.tar.gz bsie-be6027859c815e18b08a49ca1a45df3fc0aac301.tar.bz2 bsie-be6027859c815e18b08a49ca1a45df3fc0aac301.zip |
Merge branch 'mb/iptc' into develop
Diffstat (limited to 'bsie/apps/_loader.py')
-rw-r--r-- | bsie/apps/_loader.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bsie/apps/_loader.py b/bsie/apps/_loader.py index 6411f10..d9ea9bb 100644 --- a/bsie/apps/_loader.py +++ b/bsie/apps/_loader.py @@ -1,5 +1,6 @@ # standard imports +import os import typing # external imports @@ -12,8 +13,7 @@ from bsie.lib.pipeline import Pipeline from bsie.reader import ReaderBuilder # constants -DEFAULT_CONFIG_FILE = 'default_config.yaml' - +DEFAULT_CONFIG_FILE = os.path.join(os.path.dirname(__file__), 'default_config.yaml') # exports __all__: typing.Sequence[str] = ( 'DEFAULT_CONFIG_FILE', @@ -23,7 +23,7 @@ __all__: typing.Sequence[str] = ( ## code ## -def load_pipeline(path: str) -> Pipeline: +def load_pipeline(path: str = DEFAULT_CONFIG_FILE) -> Pipeline: """Load a pipeline according to a config at *path*.""" # load config file with open(path, 'rt', encoding='utf-8') as ifile: |