From db11c3c0f828d6b1b370b5c92a7c26ea844aca43 Mon Sep 17 00:00:00 2001 From: algorandpa Date: Sat, 17 Dec 2022 21:51:49 +0000 Subject: [PATCH] add config dir on pikerd startup --- piker/data/marketstore.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/piker/data/marketstore.py b/piker/data/marketstore.py index 09bfd680..096c9745 100644 --- a/piker/data/marketstore.py +++ b/piker/data/marketstore.py @@ -132,7 +132,10 @@ def start_marketstore( mktsdir = os.path.join(config._config_dir, 'marketstore') - # create when dne + # create dirs when dne + if not os.path.isdir(config._config_dir): + os.mkdir(config._config_dir) + if not os.path.isdir(mktsdir): os.mkdir(mktsdir)