94c16027 by 周伟奇

fix path

1 parent d1c086a8
......@@ -35,7 +35,11 @@ class Command(BaseCommand, LoggerMixin):
else:
date_str = date.strftime('%Y-%m-%d')
excel_path = os.path.join(conf.LOG_DIR, 'bs_{0}.xlsx'.format(date_str))
excel_dir = os.path.join(conf.DATA_DIR, 'AFC', 'Logs')
if not os.path.exists(excel_dir):
print('excel dir not exists')
return
excel_path = os.path.join(excel_dir, 'bs_{0}.xlsx'.format(date_str))
log_path = os.path.join(conf.LOG_DIR, 'bs.log.{0}'.format(date_str))
if not os.path.exists(log_path):
print('log_path not exists')
......
......@@ -70,7 +70,11 @@ class Command(BaseCommand, LoggerMixin):
else:
date_str = date.strftime('%Y-%m-%d')
excel_path = os.path.join(conf.LOG_DIR, 'license_{0}.xlsx'.format(date_str))
excel_dir = os.path.join(conf.DATA_DIR, 'AFC', 'Logs')
if not os.path.exists(excel_dir):
print('excel dir not exists')
return
excel_path = os.path.join(excel_dir, 'license_{0}.xlsx'.format(date_str))
log_path = os.path.join(conf.LOG_DIR, 'license.log.{0}'.format(date_str))
if not os.path.exists(log_path):
print('log_path not exists')
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!