Adjuested log_path under Windows

This commit is contained in:
2Shirt 2019-07-13 17:42:44 -06:00
parent f30a6dd3db
commit 36e70c48ba
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -62,7 +62,7 @@ def update_log_path(dest_dir, dest_filename=''):
def start(config=None): def start(config=None):
"""Configure and start logging using safe defaults.""" """Configure and start logging using safe defaults."""
if os.name == 'nt': if os.name == 'nt':
log_path = '{drive}/{short}/Logs/{date}/{full}/log_{datetime}.log'.format( log_path = '{drive}/{short}/Logs/{date}/{full}/{datetime}.log'.format(
drive=os.environ.get('SYSTEMDRIVE', 'C:'), drive=os.environ.get('SYSTEMDRIVE', 'C:'),
short=cfg.main.KIT_NAME_SHORT, short=cfg.main.KIT_NAME_SHORT,
date=time.strftime('%Y-%m-%d'), date=time.strftime('%Y-%m-%d'),