From 611165aaab2eb7a7e16e8fc2ad9a1e3ddea592d7 Mon Sep 17 00:00:00 2001
From: dave <dave@dtu.dk>
Date: Sat, 11 Jun 2016 09:17:46 +0200
Subject: [PATCH] prepost.Simulations: apply winefix for jess pbs scripts

---
 wetb/prepost/Simulations.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/wetb/prepost/Simulations.py b/wetb/prepost/Simulations.py
index 9a8912dc..b4d2625f 100755
--- a/wetb/prepost/Simulations.py
+++ b/wetb/prepost/Simulations.py
@@ -1925,9 +1925,12 @@ class PBS(object):
         if server == 'gorm':
             self.maxcpu = 1
             self.secperiter = 0.012
+            self.wine = 'time WINEARCH=win32 WINEPREFIX=~/.wine32 wine'
         elif server == 'jess':
             self.maxcpu = 1
             self.secperiter = 0.012
+            self.wine = 'WINEARCH=win32 WINEPREFIX=~/.wine32 winefix\n'
+            self.wine += 'time WINEARCH=win32 WINEPREFIX=~/.wine32 wine'
         else:
             raise UserWarning('server support only for jess or gorm')
 
@@ -1947,9 +1950,6 @@ class PBS(object):
         # the actual script starts empty
         self.pbs = ''
 
-        # FIXME: this goes wrong when Morten does it directly on the cluster
-        # the resulting PBS script has too many slashes !
-        self.wine = 'time WINEARCH=win32 WINEPREFIX=~/.wine32 wine'
         # in case you want to redirect stdout to /dev/nul
 #        self.wine_appendix = '> /dev/null 2>&1'
         self.wine_appendix = ''
-- 
GitLab