add old lci module
This commit is contained in:
1 parent
38a6e815f0
commit
8499631091
171 files changed
+25562
No files matched your search
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env python3
|
||||
'''
|
||||
|
||||
子系统启动脚本
|
||||
这个脚本的功能是通过PMC调用完成子系统的初始化
|
||||
|
||||
'''
|
||||
from pmc import PmcComm
|
||||
import os
|
||||
import csv
|
||||
import time
|
||||
script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
with open(f"{script_dir}/_init.csv", encoding='utf-8') as f:
|
||||
reader = csv.reader(f)
|
||||
records = [row[0] for row in reader]
|
||||
def main():
|
||||
comm = PmcComm('http://localhost:8012')
|
||||
comm.Set_RSA_Pri_Key('../pmc/private_key.pem')
|
||||
comm.Try_Get_AES_Key()
|
||||
for item in records:
|
||||
if item and not item.startswith('#'):
|
||||
comm.try_start(item)
|
||||
time.sleep(1) # 保持一定的时间间隔,避免CPU占用
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in new issue
Block a user