No project description provided
Project description
[](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.9.tar.gz
(30.9 kB
view details)
File details
Details for the file ConfTools-1.9.9.tar.gz
.
File metadata
- Download URL: ConfTools-1.9.9.tar.gz
- Upload date:
- Size: 30.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.15.0 CPython/2.7.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b399d96ac5f79b027222b89873ff7112ac66a79b9f7d9ff211319f98a6611994
|
|
MD5 |
f5d328e531ce8f1dd58909bd3903ccb7
|
|
BLAKE2b-256 |
f70f196b6a2ed7050589e4133cc0c27cf140ba6bd4a13c6640a6ad00341274ca
|