weatherBot
weatherBot copied to clipboard
Change default location of log file
When un-configured, the log file is created at the user's home directory. I think switching this to default to the base directory of the bot makes more sense.
changing the ~ to a . would work or just removing it and the / before
weatherBot.log all together cause python will just work in the current directory?
https://github.com/BrianMitchL/weatherBot/blob/9a5b3c873470010e9631bfeda3d6b8ef1e9cf9f9/weatherBot.py#L72
to look like
'log_path': conf['log'].get('log_path', os.path.expanduser('weatherBot.log')
That's to simplify putting the log file in the user's home directory?
If this is be touched, I think it'd make more sense to put in os.getcwd() or the same directory where __file__ is so the bot is more self-contained in a single directory.