Browse Source

error fix

josh 5 months ago
parent
commit
41697431dc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/build_exo.py

+ 2 - 2
scripts/build_exo.py

@@ -50,9 +50,9 @@ def run():
         ])
         ])
     try:
     try:
         subprocess.run(command, check=True)
         subprocess.run(command, check=True)
-        os.makedirs('./dist/main.dist/transformers/models', exist_ok=True)
-        shutil.copytree(f"{site_packages}/transformers/models", "dist/main.dist/transformers/models")
         print("Build completed!")
         print("Build completed!")
+        os.makedirs('./dist/main.dist/transformers/models', exist_ok=True)
+        shutil.copytree(f"{site_packages}/transformers/models", "dist/main.dist/transformers/models", dirs_exist_ok=True)
     except subprocess.CalledProcessError as e:
     except subprocess.CalledProcessError as e:
         print(f"An error occurred: {e}")
         print(f"An error occurred: {e}")