Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 000a1cd

Browse files
committed
ingest_mdir: don't load local configs
Don't try to load real config files. NIPA expects configs because it's geared towards service execution. But for CLI this is a pain. Create an empty config and populate it as needed from command line arguments. Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 0fb552d commit 000a1cd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ingest_mdir.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@
2323
from core import Tester
2424

2525
config = configparser.ConfigParser()
26-
config.read(['nipa.config', "tester.config"])
26+
27+
config.add_section('dirs')
28+
config.add_section('log')
29+
30+
config.set('log', 'type', 'org')
31+
config.set('log', 'path', '.nipa.log')
2732

2833
results_dir = config.get('results', 'dir',
2934
fallback=os.path.join(NIPA_DIR, "results"))

0 commit comments

Comments
 (0)