Re: cross-platform logging.config: how to set cross platform log (handlers) file location?

2016-08-10 Thread Berteh BE
Thanks Peter for the insights that args are passed to eval(). Thanks Steven for the suggestion that ยด~/' may actually work in windows. Combining both I'm now successfully using the following in my logging.conf configuration file, that works in both *nix and Windows: [handler_file] class=handlers

cross-platform logging.config: how to set cross platform log (handlers) file location?

2016-08-09 Thread berteh
Hello. My python script should run on Linux, Win and MacOS, but I can't find a way to have logging.conf configuration that works out of the box accross all these OSes. I don't want my users to have to edit configuration files manually. If I use a "linux-like" handler configuration such as bel