From d6583ebf40c9e99bfbec3652f8ef8639160f5fb6 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@fe.uni-lj.si>
Date: Thu, 07 Jul 2016 14:40:36 +0000
Subject: [PATCH] Another fix. still not working if we have inititer.

---
 python/trisurf/tsmgr.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/python/trisurf/tsmgr.py b/python/trisurf/tsmgr.py
index 272a482..ac5c8f2 100644
--- a/python/trisurf/tsmgr.py
+++ b/python/trisurf/tsmgr.py
@@ -3,7 +3,7 @@
 from . import Remote
 from . import trisurf
 import socket
-import sys
+import os,sys
 import tabulate
 import subprocess,re
 import psutil
@@ -203,7 +203,8 @@
 
 def preview_vtu(args,host):
 	#only for localhost at the moment
-	filename=host['runs'][0].getLastVTU()
+	Dir=trisurf.Directory(maindir=host['runs'][0].maindir,simdir=host['runs'][0].subdir)
+	filename=os.path.join("./",Dir.fullpath(),host['runs'][0].getLastVTU())
 	print(filename)
 	if sys.version_info>=(3,0):
 		print("Preview works only with python 2.7")

--
Gitblit v1.9.3