ConfigArgParse icon indicating copy to clipboard operation
ConfigArgParse copied to clipboard

Use of pathlib causes an exception.

Open othalan opened this issue 5 years ago • 1 comments

Python 3.4 added pathlib a powerful cross-platform path tool which can usually be a drop-in replacement for strings when dealing with files. However, an exception occurs when printing the help screen if the default configuration file is a pathlib object. This can be solved by wrapping path strings in an explicit string conversion (str(pathlib.Path('/path/to/init.ini')))

othalan avatar May 21 '19 07:05 othalan

Also ran into this. Would you be open to a PR fixing this?

acepace avatar Oct 29 '20 07:10 acepace