From f52f811b00d1e0a8e634f66caca9c031799087b1 Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Sun, 22 Oct 2023 19:08:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=81=E7=89=88=E6=9C=AC=E7=9A=84=E5=BB=BA?= =?UTF-8?q?=E6=A8=A1=E8=BD=AF=E4=BB=B6=E4=BF=AE=E6=94=B9rcbox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/common.py | 21 +++++++++++++++++++-- main_step2.py | 4 ++++ tools/gen_xmps.py | 2 +- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/libs/common.py b/libs/common.py index e0602b4..b6551e5 100644 --- a/libs/common.py +++ b/libs/common.py @@ -1,4 +1,4 @@ -import redis,sys,os +import redis,sys,os,re import platform if platform.system() == 'Windows': #sys.path.append('e:\\libs\\') @@ -93,4 +93,21 @@ def copy_remote_directory(remote_host, remote_path, local_path): # if __name__ == '__main__': # redis_conn = config.redis_local_common -# print(redis_conn.sismember("photo3_no","1")) \ No newline at end of file +# print(redis_conn.sismember("photo3_no","1")) + +#读取rcbox文件进行修改指定的值 + +def change_rcbox_s(pid,new_value): + rcbox_path = os.path.join(config.workdir, pid, f"{pid}.rcbox") + old_value_pattern = r'