weatherBot icon indicating copy to clipboard operation
weatherBot copied to clipboard

Change default location of log file

Open BrianMitchL opened this issue 6 years ago • 2 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.

BrianMitchL avatar May 07 '19 05:05 BrianMitchL

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')

mwoolweaver avatar Apr 17 '20 06:04 mwoolweaver

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.

BrianMitchL avatar Apr 17 '20 23:04 BrianMitchL