Commit Graph

3 Commits

Author SHA1 Message Date
erinnerim
1d7578251c Updates to import statements:
- 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>
2021-09-15 16:17:16 -07:00
Jed Reynolds
7b8f4bd15d py-json: updates __init__.py to import most useful libraries 2021-01-29 14:02:44 -08:00
Jed Reynolds
af606e9bb8 begins python examples exercising json api 2019-10-27 23:21:22 -07:00