My earlier attempt missed passing in the cmd-line-arg to the
code that actually used it.
And, add more useful printout to the CV test mgr to show what it
is pulling where.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2. Create check_argparse which allows us to check which flags are or are not included in argparse statements.
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
- Import importlib, os, and sys to each python script.
- Append "lanforge-scripts" root directory to the system path, allowing each script to be called from an antecedent directory. e.g.
if 'lanforge-scripts' not in sys.path:
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../../")))
- All statements of the form 'from <module> import <class>' replace with:
<module> = importlib.import_module("lanforge-scripts.<directory>.<module>")
<class> = <module>.<class>
And tweak a few others to not have default args so that
if nothing is entered, defaults (or raw config lines/files
content is used if it exists.)
Signed-off-by: Ben Greear <greearb@candelatech.com>