From 0fcb1369344d56f5dbfb0f017b7a892255eeb462 Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Fri, 10 Jan 2025 20:46:48 +0800 Subject: [PATCH] 1 --- yj_local_build/main_step1.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yj_local_build/main_step1.py b/yj_local_build/main_step1.py index e87f67d..e1877d3 100644 --- a/yj_local_build/main_step1.py +++ b/yj_local_build/main_step1.py @@ -169,14 +169,14 @@ def step2(pid,headsCount): def getXmps(pid): #从共享盘上下载对齐信息,判断是否有 - print(f"判断是否存在 {os.path.join(config.workdir, 'xmps','texture')} -- {os.path.exists(os.path.join(config.workdir, 'xmps','texture'))}") - if os.path.exists(os.path.join(config.workdir, 'xmps','texture')) == False or os.path.exists(os.path.join(config.workdir, 'xmps','mesh')) == False: - print(f"检测不到对齐坐标,请先人工建一次模进行对齐,创建坐标,创建制定的坐标到 {os.path.join(config.workdir, 'xmps','mesh')} 和 {os.path.join(config.workdir, 'xmps','texture')}") + print(f"判断是否存在 {os.path.join(config['workdir'], 'xmps','texture')} -- {os.path.exists(os.path.join(config['workdir'], 'xmps','texture'))}") + if os.path.exists(os.path.join(config['workdir'], 'xmps','texture')) == False or os.path.exists(os.path.join(config['workdir'], 'xmps','mesh')) == False: + print(f"检测不到对齐坐标,请先人工建一次模进行对齐,创建坐标,创建制定的坐标到 {os.path.join(config['workdir'], 'xmps','mesh')} 和 {os.path.join(config['workdir'], 'xmps','texture')}") return False else: #将共享盘的对齐信息复制到工作目录,photo1 和 photo2 - shutil.copytree(os.path.join(config.workdir, 'xmps','mesh'), os.path.join(config.workdir, pid, 'photo1'),dirs_exist_ok=True) - shutil.copytree(os.path.join(config.workdir, 'xmps','texture'), os.path.join(config.workdir, pid, 'photo2'),dirs_exist_ok=True) + shutil.copytree(os.path.join(config['workdir'], 'xmps','mesh'), os.path.join(config['workdir'], pid, 'photo1'),dirs_exist_ok=True) + shutil.copytree(os.path.join(config['workdir'], 'xmps','texture'), os.path.join(config['workdir'], pid, 'photo2'),dirs_exist_ok=True) return True