[tor-commits] [ooni-probe/master] Initialise the scheduler directory
art at torproject.org
art at torproject.org
Mon Sep 19 12:14:24 UTC 2016
commit e8ac20f398a36c155317d963d039647fa358fb94
Author: Arturo Filastò <arturo at filasto.net>
Date: Tue Jul 26 21:38:52 2016 +0200
Initialise the scheduler directory
---
ooni/settings.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ooni/settings.py b/ooni/settings.py
index 632dbe4..36670ac 100644
--- a/ooni/settings.py
+++ b/ooni/settings.py
@@ -102,6 +102,8 @@ class OConfig(object):
self.inputs_directory = os.path.join(self.ooni_home, 'inputs')
self.scheduler_directory = os.path.join(self.ooni_home, 'scheduler')
+ if not os.path.exists(self.scheduler_directory):
+ os.mkdir(self.scheduler_directory)
if self.advanced.decks_dir:
self.decks_directory = self.advanced.decks_dir
More information about the tor-commits
mailing list