diff --git a/python/dune/perftool/options.py b/python/dune/perftool/options.py index 8809c1a5fa1d3f2c1808991d1c0e8c457250c930..db59bb9e927de59f0a7e98aa2768f210aab1aa64 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