X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=pymeshio%2Fpmx%2Freader.py;h=1126f79cc4b7f6a2b33500f48dbcc77c47becf84;hb=0f304057cda88bde341c40107b9e22fa931c7890;hp=59a7eff4dba35d2777422b6bc4434a44f4c8ac62;hpb=2efddafef674ff17c8562ac6d9a84a52bbf7c355;p=meshio%2Fpymeshio.git diff --git a/pymeshio/pmx/reader.py b/pymeshio/pmx/reader.py index 59a7eff..1126f79 100644 --- a/pymeshio/pmx/reader.py +++ b/pymeshio/pmx/reader.py @@ -286,7 +286,9 @@ def read_from_file(path): """ - return read(io.BytesIO(pymeshio.common.readall(path))) + pmx=read(io.BytesIO(pymeshio.common.readall(path))) + pmx.path=path + return pmx def read(ios):