1
This commit is contained in:
1 parent
cd8a15bf49
commit
c0ec8a39cf
1 file changed
+4
-4
@@ -169,14 +169,14 @@ def step2(pid,headsCount):
|
|||||||
def getXmps(pid):
|
def getXmps(pid):
|
||||||
|
|
||||||
#从共享盘上下载对齐信息,判断是否有
|
#从共享盘上下载对齐信息,判断是否有
|
||||||
print(f"判断是否存在 {os.path.join(config.workdir, 'xmps_rate','texture')} -- {os.path.exists(os.path.join(config.workdir, 'xmps_rate','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:
|
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_rate','mesh')} 和 os.path.join(config.workdir, 'xmps_rate','texture')")
|
print(f"检测不到对齐坐标,请先人工建一次模进行对齐,创建坐标,创建制定的坐标到 {os.path.join(config.workdir, 'xmps','mesh')} 和 {os.path.join(config.workdir, 'xmps','texture')}")
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
#将共享盘的对齐信息复制到工作目录,photo1 和 photo2
|
#将共享盘的对齐信息复制到工作目录,photo1 和 photo2
|
||||||
shutil.copytree(os.path.join(config.workdir, 'xmps_rate','mesh'), os.path.join(config.workdir, pid, 'photo1'),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_rate','texture'), os.path.join(config.workdir, pid, 'photo2'),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
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user