--- 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): """