mirror of
https://github.com/tuya-cloudcutter/tuya-cloudcutter.git
synced 2026-02-19 21:51:18 +01:00
profile-building - Copy downloaded schema/schema_id to parent directory for profile regeneration.
This commit is contained in:
@@ -212,8 +212,12 @@ def run(directory: str, output_file_prefix: str, uuid: str, auth_key: str, produ
|
||||
print(f"[+] Schema: {response['result']['schema']}")
|
||||
with open(os.path.join(directory, output_file_prefix + "_schema_id.txt"), 'w') as f:
|
||||
f.write(response['result']['schemaId'])
|
||||
with open(os.path.join(os.path.join(directory, ".."), "schema_id.txt"), 'w') as f:
|
||||
f.write(response['result']['schemaId'])
|
||||
with open(os.path.join(directory, output_file_prefix + "_schema.txt"), 'w') as f:
|
||||
f.write(response['result']['schema'])
|
||||
with open(os.path.join(os.path.join(directory, ".."), "schema.txt"), 'w') as f:
|
||||
f.write(response['result']['schema'])
|
||||
with open(os.path.join(directory, output_file_prefix + "_dev_id.txt"), 'w') as f:
|
||||
f.write(response['result']['devId'])
|
||||
with open(os.path.join(directory, output_file_prefix + "_sec_key.txt"), 'w') as f:
|
||||
|
||||
Reference in New Issue
Block a user