force file names on the command line to absolute paths
@@ -467,7 +467,7 @@ class EditorNotebook(ui_utils.ClosableNotebook):
"""If no filename was sent from command line
then load previous files (if setting allows)"""
- cmd_line_filenames = [name for name in sys.argv[1:] if os.path.exists(name)]
+ cmd_line_filenames = [os.path.abspath(name) for name in sys.argv[1:] if os.path.exists(name)]
if len(cmd_line_filenames) > 0:
filenames = cmd_line_filenames
