From 02c5e9839612f74d36850bcbf7b5f729248482e5 Mon Sep 17 00:00:00 2001
From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de>
Date: Tue, 19 Jan 2016 11:03:13 +0100
Subject: [PATCH] Use absolute paths consequently

---
 python/dune/perftool/options.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/python/dune/perftool/options.py b/python/dune/perftool/options.py
index 8809c1a5..db59bb9e 100644
--- a/python/dune/perftool/options.py
+++ b/python/dune/perftool/options.py
@@ -21,8 +21,17 @@ def get_form_compiler_arguments():
 
     # Modify the positional argument to not be a list
     args = vars(parser.parse_args())
+
+    # Delistify the uflfile parameter
     args["uflfile"] = args["uflfile"][0]
 
+    # Turn any relative paths into absolute ones for consistency
+    import os.path
+    if args["driver_file"]:
+        args["driver_file"] = os.path.abspath(args["driver_file"])
+    if args["operator_file"]:
+        args["operator_file"] = os.path.abspath(args["operator_file"])
+
     # Return the argument dict. This result is memoized to turn all get_option calls into simple dict lookups.
     return args
 
-- 
GitLab