Commit Graph

7 Commits

Author SHA1 Message Date
Jed Reynolds
bcbc3bf7a2 JSON: py-json/LANforge/set_port.py adjusted to lanforge_client/lanforge_api.py 2021-10-11 16:15:53 -07:00
Jed Reynolds
f4e45aadeb set_port.py: corrects updated LFJsonCommand references that have changed
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
2021-09-28 09:11:24 -07:00
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
Jed Reynolds
9b23578bf6 set_port.py: added environment check to utilize the LFJsonPost flag parameters
Signed-off-by: Jed Reynolds <jed@candelatech.com>
2021-08-17 15:45:23 -07:00
Jed Reynolds
d37f633eb6 set_port.py: adds port interest flags 2020-06-04 00:29:08 -07:00
Jed Reynolds
b1efecd5d6 py-json: defines flags for add_sta, set_port 2020-06-03 13:28:24 -07:00