Browse Source

姿势上传处理后,删除文件夹

master
dongchangxi 12 months ago
parent
commit
3120dcb82e
  1. 2
      new_studio_to_reg/get_new_studio_reg_info.py
  2. 3
      old_to_new_build/get_reg_info.py

2
new_studio_to_reg/get_new_studio_reg_info.py

@ -116,6 +116,8 @@ def get_photo2_align_info(pid):
r = create_redis_connection() r = create_redis_connection()
r.rpush('ai:ai_build_mesh',pid) r.rpush('ai:ai_build_mesh',pid)
#删除文件夹
shutil.rmtree(os.path.join(config.workdir, pid), ignore_errors=True)
def create_redis_connection(): def create_redis_connection():
"""创建 Redis 连接,若连接失败则重试""" """创建 Redis 连接,若连接失败则重试"""

3
old_to_new_build/get_reg_info.py

@ -110,6 +110,9 @@ def get_photo2_align_info(pid,flagDoXmps=False):
r = create_redis_connection() r = create_redis_connection()
r.rpush('ai:ai_repeat_build',pid) r.rpush('ai:ai_repeat_build',pid)
#删除文件夹
shutil.rmtree(os.path.join(config.workdir, pid), ignore_errors=True)
def create_redis_connection(): def create_redis_connection():
"""创建 Redis 连接,若连接失败则重试""" """创建 Redis 连接,若连接失败则重试"""

Loading…
Cancel
Save