Commit bf5ec451 authored by Yohan Jarosz's avatar Yohan Jarosz

copy screen directly into db folder

parent 80dba9fe
Pipeline #1541 canceled with stages
in 39 seconds
...@@ -386,7 +386,7 @@ def init(ctx, generate, screen): ...@@ -386,7 +386,7 @@ def init(ctx, generate, screen):
click.secho('Path provided does not exist: `%s`.' % screen_path, fg='red', bold=True) click.secho('Path provided does not exist: `%s`.' % screen_path, fg='red', bold=True)
ctx.abort() ctx.abort()
screen_path_name = screen_path.name.splitext()[0] screen_path_name = screen_path.name.splitext()[0]
database_path = Path(ctx.obj['database-path']).abspath() database_path = Path(ctx.obj['database-path']).abspath() / 'filtering'
shutil.copy(screen_path, database_path / screen_path_name + '.fa') shutil.copy(screen_path, database_path / screen_path_name + '.fa')
ev['FILTER'] = screen_path_name ev['FILTER'] = screen_path_name
# if not generate: # if not generate:
......
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