PyInstaller/PyInstallerConfigDialog.py

changeset 5
8c92d66d20e4
parent 4
52f0572b5908
child 6
0f0f1598fc4a
diff -r 52f0572b5908 -r 8c92d66d20e4 PyInstaller/PyInstallerConfigDialog.py
--- a/PyInstaller/PyInstallerConfigDialog.py	Thu Jan 18 14:30:06 2018 +0100
+++ b/PyInstaller/PyInstallerConfigDialog.py	Fri Jan 19 17:08:15 2018 +0100
@@ -178,13 +178,13 @@
         Public method that generates the command line parameters.
         
         It generates a list of strings to be used to set the QProcess arguments
-        for the pyinstaller call and a list containing the non default
-        parameters. The second list can be passed back upon object generation
-        to overwrite the default settings.
+        for the pyinstaller/pyi-makespec call and a list containing the non
+        default parameters. The second list can be passed back upon object
+        generation to overwrite the default settings.
         
-        @return a tuple of the command line parameters and non default
-            parameters
-        @rtype tuple of (list of str, dict)
+        @return a tuple of the command line parameters, non default parameters
+            and the script path
+        @rtype tuple of (list of str, dict, str)
         """
         parms = {}
         args = []
@@ -257,13 +257,13 @@
         # 3. always add these arguments
         args.append("--noconfirm")  # don't ask the user
         
-        # finalize the arguments array
+        # determine the script to be processed
         if self.__parameters["mainscript"]:
-            args.append(self.__project.getMainScript())
+            script = self.__project.getMainScript()
         else:
-            args.append(self.__parameters["inputFile"])
+            script = self.__parameters["inputFile"]
         
-        return args, parms
+        return args, parms, script
 
     def accept(self):
         """

eric ide

mercurial