Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
support None as config_file to avoid trying to read any file #310
Conversation
|
@lesinigo Hi. I can't see why this is useful since files that don't exist are silently ignored and the code strictly checks for sections existence before trying to read from the For instance, using |
|
@delivrance it's the opposite of non existent files: the PR makes possible to avoid reading an existent file; this behavior must be explicitly requested and if not used it does not change the standard behavior. |
|
@lesinigo I fail to understand the reasoning behind your proposal. If the config file exists, why don't you want it to be read? Also remember that arguments passed to |


There is currently no way to avoid trying to read a
config_filebecause in theClientconstructor the relevant parameter gets immediately passed throughpathlib.Path()and then on toConfigParser().read().This PR adds support for
Client(config_file=None)to avoid trying to read anything.