Commit Graph

4 Commits

Author SHA1 Message Date
Matthew Stidham
36400e003d Making it so that lanforge-scripts can work if the repository isn't named exactly the same way
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-17 15:29:15 -07:00
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
Matthew Stidham
7a1dfa89d1 Update regression_test
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-05-04 16:05:41 -07:00
Chuck SmileyRekiere
063acd6389 moved ./py-json/influx.py to ./py-scripts/influx.py and ./py-json/influx2.py to ./py-scripts/influx2.py py-json is communications to lanforge
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-04-16 06:31:21 -06:00