mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2025-02-06 12:25:21 +00:00
13 lines
No EOL
445 B
Python
Executable file
13 lines
No EOL
445 B
Python
Executable file
import sys, os, json
|
|
|
|
if len(sys.argv) == 3:
|
|
file_dir = os.path.join(os.getcwd(), sys.argv[1])
|
|
if not os.path.exists(file_dir):
|
|
os.makedirs(file_dir)
|
|
|
|
dependency = eval(sys.argv[2])
|
|
for component in dependency:
|
|
dependency[component] = dependency[component].split()
|
|
|
|
with open(os.path.join(file_dir, "dependency.json"), "w") as f:
|
|
f.write(json.dumps(dependency, sort_keys=True, indent=4) +"\n") |