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