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: