Improved joining of filenames and directory paths.

这个提交包含在:
Craig Warren
2016-05-05 11:53:19 +01:00
父节点 dd36401f12
当前提交 0ad64b5fa5
共有 3 个文件被更改,包括 5 次插入5 次删除

查看文件

@@ -85,7 +85,7 @@ class Snapshot:
if not os.path.exists(snapshotdir):
os.mkdir(snapshotdir)
self.filename = os.path.join(snapshotdir, self.filename + '.vti')
self.filename = os.path.abspath(os.path.join(snapshotdir, self.filename + '.vti'))
# Calculate number of cells according to requested sampling
self.vtk_xscells = round_value(self.xs / self.dx)