-
Notifications
You must be signed in to change notification settings - Fork 2
/
bpline.py
executable file
·39 lines (31 loc) · 1.02 KB
/
bpline.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011, Marine Biological Laboratory
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# Please read the docs/COPYING file.
#
# bpline.py: user command line interface.
#
# standard python modules
import os
import sys
# non-standard python modules
from pipeline.utils.cmdlinehandler import get_parser_obj
from pipeline.utils.utils import print_config_summary
from pipeline.classes.constants import Constants as c
from pipeline.classes.config import Config
def main(config):
if config.args.dry_run:
print_config_summary(config)
sys.exit()
for filter in config.filters:
config.init_filter_files_and_directories(filter)
filter.execute()
return 0
if __name__ == '__main__':
sys.exit(main(Config(get_parser_obj().parse_args(), c())))