diff --git a/src/defter/defter.py b/src/defter/defter.py index bf0341f..1af7035 100644 --- a/src/defter/defter.py +++ b/src/defter/defter.py @@ -2804,7 +2804,7 @@ def act_open_def_file(self, zipFilePath=None): shutil.unpack_archive(zipFilePath, tempDirPath, "zip") except Exception as e: self.lutfen_bekleyin_gizle() - hata = self.tr('Could not import file -- "{0:s}"\n{1:s}').format(zipFilePath, str(e)) + hata = self.tr('Could not open file -- "{0:s}"\n{1:s}').format(zipFilePath, str(e)) self.log(hata, 5000, 3, dialog=True) return False @@ -11415,8 +11415,13 @@ def calistir(): # Guncelleme: Şimdi pencereyi once de olusturabiliyoruz.. # o yuzden iptal ettik alt satiri, # TODO: su anda yine bozuk :) + pencere = DefterAnaPencere() + for zipFilePath in sys.argv[1:]: + if zipFilePath.endswith(".def"): + pencere.act_open_def_file(zipFilePath) + # pencere.show() # burda pencere.show() demiyoruz, DefterAnaPencere().__init__ icinde show var. # initten cikmadan bazi islemlerden once show cagirmak gerekiyor. (visible view rect sceneRect e atayabilmek icin)