Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Heimann
lassie
Commits
20d78c45
Commit
20d78c45
authored
Nov 02, 2016
by
Marius Kriegerowski
Browse files
overwrite stackmax directory if --force
parent
35ec3924
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core.py
View file @
20d78c45
...
...
@@ -2,6 +2,7 @@ import sys
import
os
import
logging
import
os.path
as
op
import
shutil
import
numpy
as
num
...
...
@@ -26,6 +27,8 @@ def scan(
if
op
.
exists
(
config
.
detections_path
):
if
force
:
os
.
unlink
(
config
.
detections_path
)
shutil
.
rmtree
(
'stackmax'
)
os
.
mkdir
(
'stackmax'
)
else
:
raise
common
.
LassieError
(
'detections file already exists: %s'
%
config
.
detections_path
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment