Fix first start for docker

This commit is contained in:
Harvey Tindall 2020-05-02 19:09:02 +01:00
parent 922987454f
commit ef7fc55864

View File

@ -37,6 +37,7 @@ else:
local_dir = (Path(__file__).parents[2] / 'data').resolve()
first_run = False
if data_dir.exists() is False or (data_dir / 'config.ini').exists() is False:
if not data_dir.exists():
Path.mkdir(data_dir)
print(f'Config dir not found, so created at {str(data_dir)}')