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'