Skip to content
Snippets Groups Projects
Commit 02c5e983 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Use absolute paths consequently

parent 3111ccef
No related branches found
No related tags found
No related merge requests found
...@@ -21,8 +21,17 @@ def get_form_compiler_arguments(): ...@@ -21,8 +21,17 @@ def get_form_compiler_arguments():
# Modify the positional argument to not be a list # Modify the positional argument to not be a list
args = vars(parser.parse_args()) args = vars(parser.parse_args())
# Delistify the uflfile parameter
args["uflfile"] = args["uflfile"][0] 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 the argument dict. This result is memoized to turn all get_option calls into simple dict lookups.
return args return args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment