Start to create Python client
This commit is contained in:
12
python_device/src/args.py
Normal file
12
python_device/src/args.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import argparse
|
||||
import os
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
description='SolarEnergy Python-based client')
|
||||
|
||||
parser.add_argument("--unsecure_origin", help="Change unsecure API origin", default="http://localhost:8080")
|
||||
parser.add_argument("--storage", help="Change storage location", default="storage")
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
args.secure_origin_path = os.path.join(args.storage, "SECURE_ORIGIN")
|
||||
Reference in New Issue
Block a user