2024-06-29 16:05:58 +00:00
|
|
|
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()
|
|
|
|
|
2024-06-29 16:08:57 +00:00
|
|
|
args.secure_origin_path = os.path.join(args.storage, "SECURE_ORIGIN")
|
2024-06-30 07:46:15 +00:00
|
|
|
args.root_ca_path = os.path.join(args.storage, "root_ca.pem")
|
|
|
|
args.dev_priv_key = os.path.join(args.storage, "dev.key")
|