Commit 20d78c45 authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

overwrite stackmax directory if --force

parent 35ec3924
...@@ -2,6 +2,7 @@ import sys ...@@ -2,6 +2,7 @@ import sys
import os import os
import logging import logging
import os.path as op import os.path as op
import shutil
import numpy as num import numpy as num
...@@ -26,6 +27,8 @@ def scan( ...@@ -26,6 +27,8 @@ def scan(
if op.exists(config.detections_path): if op.exists(config.detections_path):
if force: if force:
os.unlink(config.detections_path) os.unlink(config.detections_path)
else: else:
raise common.LassieError( raise common.LassieError(
'detections file already exists: %s' % config.detections_path) 'detections file already exists: %s' % config.detections_path)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment