summaryrefslogtreecommitdiff
path: root/scripts/db_access/client_side_db.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2015-03-25 17:33:56 -0300
committerdrebs <drebs@leap.se>2015-04-23 17:46:18 -0300
commitb76f9b6c479d73206a6a29494b83d2b9c66b7a6a (patch)
tree8c946672ed396cecc8fd4908614531cf3eba90b8 /scripts/db_access/client_side_db.py
parent5a9eac4ba0d4ddc419fdaaee4d08dbc7d8115294 (diff)
[bug] create directory in client db access script
Diffstat (limited to 'scripts/db_access/client_side_db.py')
-rw-r--r--scripts/db_access/client_side_db.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/db_access/client_side_db.py b/scripts/db_access/client_side_db.py
index a77b0b16..d7c54b66 100644
--- a/scripts/db_access/client_side_db.py
+++ b/scripts/db_access/client_side_db.py
@@ -171,6 +171,8 @@ def _get_basedir(args):
basedir = args.basedir
if basedir is None:
basedir = tempfile.mkdtemp()
+ elif not os.path.isdir(basedir):
+ os.mkdir(basedir)
logger.info('Using %s as base directory.' % basedir)
return basedir