Change default location of log file
BrianMitchL opened this issue · comments
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?
Line 72 in 9a5b3c8
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.