File tree Expand file tree Collapse file tree 4 files changed +23
-1
lines changed
Expand file tree Collapse file tree 4 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 33sys .path .append ('../lib' )
44import ad_utils as ad
55import backend_utils as u
6+ import argparse
67
8+ parser = argparse .ArgumentParser ()
9+ parser .add_argument ('--debug' , help = 'Debug mode' , default = "" )
10+ args = parser .parse_args ()
11+
12+ if args .debug == "1" :
13+ ad .__DEBUG__ = 1
714entity = u .readjsoninput ()
815config = u .read_config ('../etc/config.conf' )
916ad .set_config (config )
Original file line number Diff line number Diff line change 77config = u .read_config ('../etc/config.conf' )
88ad .set_config (config )
99## test connection
10- ad .test_conn (cat )
10+ ad .test_conn ()
Original file line number Diff line number Diff line change 33sys .path .append ('../lib' )
44import ad_utils as ad
55import backend_utils as u
6+ import argparse
67
8+ parser = argparse .ArgumentParser ()
9+ parser .add_argument ('--debug' , help = 'Debug mode' , default = "" )
10+ args = parser .parse_args ()
11+
12+ if args .debug == "1" :
13+ ad .__DEBUG__ = 1
714entity = u .readjsoninput ()
815config = u .read_config ('../etc/config.conf' )
916ad .set_config (config )
Original file line number Diff line number Diff line change 33sys .path .append ('../lib' )
44import ad_utils as ad
55import backend_utils as u
6+ import argparse
7+
8+ parser = argparse .ArgumentParser ()
9+ parser .add_argument ('--debug' , help = 'Debug mode' , default = "" )
10+ args = parser .parse_args ()
11+
12+ if args .debug == "1" :
13+ ad .__DEBUG__ = 1
614
715entity = u .readjsoninput ()
816config = u .read_config ('../etc/config.conf' )
You can’t perform that action at this time.
0 commit comments