Commit 663dbe20 authored by Raphael Beer's avatar Raphael Beer

Fix: init failing when ./logs dir is missing

parent dfd23efb
import os
import aiohttp
import argparse
import asyncio
......@@ -413,6 +414,10 @@ db = connect(host=args.mongo_host, port=args.mongo_port)
with open(args.account_file, "r") as f:
accounts = json.loads(f.read())
if os.path.isdir('./logs') is False:
print('Creating ./logs directory')
os.mkdir('./logs')
if args.log is not None:
print("Logging test results to %s", args.log)
log_file = open(args.log, "a")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment