No project description provided
Project description
[![CircleCI](https://circleci.com/gh/AndreaCensi/conf_tools.svg?style=shield)](https://circleci.com/gh/AndreaCensi/conf_tools)
``ConfTools``: configuration made easy, for when it cannot be trivial
======================================================================
(To write)
Useful snippets
===============
Loading the YAML files that reside alongside the source code
------------------------------------------------------------
You can use ``resource_filename`` to find the directories
corresponding to the packages ``tmdp.configs`` in this way:
from pkg_resources import resource_filename
dirs = [
resource_filename("tmdp", "configs"),
resource_filename("gridworld", "configs"),
]
GlobalConfig.global_load_dirs(dirs)
``ConfTools``: configuration made easy, for when it cannot be trivial
======================================================================
(To write)
Useful snippets
===============
Loading the YAML files that reside alongside the source code
------------------------------------------------------------
You can use ``resource_filename`` to find the directories
corresponding to the packages ``tmdp.configs`` in this way:
from pkg_resources import resource_filename
dirs = [
resource_filename("tmdp", "configs"),
resource_filename("gridworld", "configs"),
]
GlobalConfig.global_load_dirs(dirs)
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
ConfTools-1.9.8.tar.gz
(30.8 kB
view hashes)