OSDN Git Service

add pymeshio.
[meshio/meshio.git] / swig / blender / cp.py
index 45cfa81..e1ac927 100644 (file)
@@ -45,6 +45,19 @@ def copy25(src):
         print(dst)
         shutil.copy(src, dst)
 
+def copy_pymeshio():
+    print("copy_pymeshio...")
+    for parent in DST_25:
+        dst="%s/pymeshio" % parent
+        if not os.path.exists(dst):
+            os.mkdir(dst)
+        # englishmap
+        shutil.copy("../englishmap.py", dst)
+        # pymethio
+        for file in os.listdir("../pymeshio"):
+            if file.endswith(".py"):
+                shutil.copy("../pymeshio/%s" % file, dst)
+
 if __name__=="__main__":
     import sys
 
@@ -53,4 +66,5 @@ if __name__=="__main__":
     for v in sys.argv[1:]:
         copy24(v)
         copy25(v)
+    copy_pymeshio()