aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/index-genenetwork2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/index-genenetwork b/scripts/index-genenetwork
index 401ae1a..4da82e4 100755
--- a/scripts/index-genenetwork
+++ b/scripts/index-genenetwork
@@ -131,6 +131,8 @@ def locked_xapian_writable_database(path: pathlib.Path) -> xapian.WritableDataba
between processes.
"""
# pylint: disable-next=invalid-name
+ if not path.exists():
+ os.makedirs(path)
db = xapian.WritableDatabase(str(path))
db.begin_transaction()
try: