From e0afcba209f2c0c3ffd143cd02fd181765688765 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 17 Mar 2015 14:20:37 +0000
Subject: [PATCH] path() would fail on windows

---
 contrib/onelab/python/onelab.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/onelab/python/onelab.py b/contrib/onelab/python/onelab.py
index 71acae801a..3d0d08c674 100755
--- a/contrib/onelab/python/onelab.py
+++ b/contrib/onelab/python/onelab.py
@@ -34,7 +34,7 @@ def path(dirname, inp):
   # dirname is a directory, can be empty
   # inp is an optional file or subdirectory name
   # returns the path to 'inp' in the same directory as 'ref' 
-  dirname = os.path.dirname(dirname)
+  dirname = os.path.dirname(dirname + os.sep)
   if not inp: 
     return dirname
   if inp[0] == '/' or inp[0] == '\\' or (len(inp) > 2 and inp[1] == '\:'):
-- 
GitLab