Utilities/Startup.py

changeset 97
c4086afea02b
parent 55
b5c84934de9c
child 107
918a6be6f051
diff -r 9624a110667d -r c4086afea02b Utilities/Startup.py
--- a/Utilities/Startup.py	Sun Jan 31 17:11:22 2010 +0000
+++ b/Utilities/Startup.py	Sun Jan 31 18:31:28 2010 +0000
@@ -10,7 +10,7 @@
 import os
 import sys
 
-from PyQt4.QtCore import QTranslator, QTextCodec, QLocale, QDir, SIGNAL, SLOT, \
+from PyQt4.QtCore import QTranslator, QTextCodec, QLocale, SIGNAL, SLOT, \
     QLibraryInfo
 from PyQt4.QtGui import QApplication
 
@@ -95,7 +95,7 @@
     @param argv list of commandline parameters (list of strings)
     @param appinfo dictionary describing the application
     @return index of the '--' option (integer). This is used to tell
-        the application, that all additional option don't belong to
+        the application, that all additional options don't belong to
         the application.
     """
     ddindex = 30000     # arbitrarily large number
@@ -154,6 +154,7 @@
         be loaded (tuple of strings)
     @return the requested locale (string)
     """
+    global loaded_translators
     translations = ("qt", "eric5") + translationFiles
     loc = Preferences.getUILanguage()
     if loc is None:
@@ -197,7 +198,7 @@
     @keyparam quitOnLastWindowClosed flag indicating to quit the application,
         if the last window was closed (boolean)
     """
-    ddindex = handleArgs(argv, appinfo)
+    handleArgs(argv, appinfo)
     app = E5Application(argv)
     app.setQuitOnLastWindowClosed(quitOnLastWindowClosed)
     try:
@@ -221,4 +222,4 @@
     app.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()"))
     w.show()
     
-    return app.exec_()
\ No newline at end of file
+    return app.exec_()

eric ide

mercurial