Skip to content

Commit 872d8df

Browse files
committed
Version 0.6.1
1 parent 83299ee commit 872d8df

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
Version 0.6.1
5+
-------------
6+
7+
- Changing config_dict auto_find to accept a path to search at
8+
- PyPI is stupid is why 0.6.0 is not up there
9+
410
Version 0.6.0
511
-------------
612

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Command line helpers
102102
--------------------
103103

104104
Use the Python interpreter as much as a shell? Here's some handy helpers to
105-
fill the void. (Please don't do 'import *' in production code, this is used
105+
fill the void. (Please don't do 'import \*' in production code, this is used
106106
as an easy to use example using the interpreter interactively.)
107107

108108
.. code:: python

reusables/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
from .web import *
1010

1111
__author__ = "Chris Griffith"
12-
__version__ = "0.6.0"
12+
__version__ = "0.6.1"

reusables/reusables.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,9 @@ def config_dict(config_file=None, auto_find=False, verify=True, **cfg_options):
215215
cfg_files.extend(config_file)
216216

217217
if auto_find:
218-
cfg_files.extend(find_all_files(current_root,
219-
ext=(".cfg", ".config", ".ini")))
218+
cfg_files.extend(find_all_files(
219+
current_root if isinstance(auto_find, bool) else auto_find,
220+
ext=(".cfg", ".config", ".ini")))
220221

221222
_logger.info("config files to be used: {0}".format(cfg_files))
222223

test/test_reuse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_get_config_dict(self):
4646
assert resp['Section 2'] == {}
4747

4848
def test_get_config_dict_auto(self):
49-
resp = reusables.config_dict(auto_find=True)
49+
resp = reusables.config_dict(auto_find="test")
5050
assert resp.get('Section1') == {'key 1': 'value 1', 'key2': 'Value2'}
5151

5252
def test_get_config_dict_no_verify(self):

0 commit comments

Comments
 (0)