From 5e3354fa2200749c9382fedcd37b4bf1126ad784 Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Sat, 7 Dec 2024 22:09:23 +0100 Subject: [PATCH] Implemented opening of multiple files via command line arguments. --- utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/utils.py b/utils.py index d53798a..f3da91e 100644 --- a/utils.py +++ b/utils.py @@ -120,11 +120,9 @@ class Utils: self.load_files(self.app.settings.last_opened_files) else: - file_path = sys.argv[1] + file_paths = sys.argv[1:] - if os.path.isfile(file_path): - file = File(self.app, file_path, file_path.split("/")[-1]) - self.app.open_files[file_path] = file + self.load_files(file_paths) def load_files(self, file_paths): for file_path in file_paths: