Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
skyline2006 committed Jan 26, 2024
1 parent 7e3bb66 commit 938aac2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/agentfabric/publish_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ def find_json_and_images(directory):
glob.glob(directory + '*.gif') # 根据需要可以添加更多图片格式

return json_files + image_files

for f in find_json_and_images(uuid_str_path):
shutil.copy(f, new_config_path)
for f in find_json_and_images(config_path):
if not os.path.exists(os.path.join(new_config_path, os.path.basename(f))):
shutil.copy(f, new_config_path)

# 复制assets目录到new_directory
assets_path = f'{local_file}/assets'
Expand Down

0 comments on commit 938aac2

Please sign in to comment.