alexferl / vyper

Python configuration with (more) fangs
MIT License
144 stars 21 forks source link

merge_config / read_config doesn't work if set_config_file is not called #28

Closed Toilal closed 4 years ago

Toilal commented 4 years ago

merge_config and read_config methods accepts a file parameter, but those methods doesn't work as expected if set_config_file has not been called before with the same file parameter.

(Because _unmarshall_reader calls _get_config_type which itself calls _get_config_file)

Toilal commented 4 years ago

I just realised file parameter should be an opened file (stream) instead of filepath string.