UNKNOWN
Project description
``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)
======================================================================
(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.tar.gz
(22.8 kB
view hashes)