From ef0d2237471d9e5df48c6f20d74d59e35b8d48d3 Mon Sep 17 00:00:00 2001 From: "pierre-francois.duc" Date: Mon, 13 May 2024 14:43:37 +0200 Subject: [PATCH] Fix Windows path of .py to convert to .xlsx --- ramp/ramp_convert_old_input_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ramp/ramp_convert_old_input_files.py b/ramp/ramp_convert_old_input_files.py index 7c753261..6ed48416 100644 --- a/ramp/ramp_convert_old_input_files.py +++ b/ramp/ramp_convert_old_input_files.py @@ -82,7 +82,7 @@ def convert_old_user_input_file( output_fname = os.path.join(output_path, output_fname) if os.name != "posix": - sys.path.insert(0, os.path.abspath(fname_path)) + sys.path.insert(0, os.path.dirname(os.path.abspath(fname_path))) file_module = importlib.import_module(fname) user_list = file_module.User_list