OSDN Git Service

implement converter
[meshio/pymeshio.git] / pymeshio / pmx / reader.py
index 59a7eff..1126f79 100644 (file)
@@ -286,7 +286,9 @@ def read_from_file(path):
     <pmx-2.0 "Miku Hatsune" 12354vertices>\r
 \r
     """\r
-    return read(io.BytesIO(pymeshio.common.readall(path)))\r
+    pmx=read(io.BytesIO(pymeshio.common.readall(path)))\r
+    pmx.path=path\r
+    return pmx\r
 \r
 \r
 def read(ios):\r