1917 (True) or script (false) |
1917 (True) or script (false) |
1918 @type bool |
1918 @type bool |
1919 @param script name of a script (optional) |
1919 @param script name of a script (optional) |
1920 @type str |
1920 @type str |
1921 """ |
1921 """ |
1922 from .StartDialog import StartDialog |
1922 from .StartDialog import StartDialog, StartDialogMode |
1923 |
1923 |
1924 self.__resetUI() |
1924 self.__resetUI() |
1925 doNotStart = False |
1925 doNotStart = False |
1926 |
1926 |
1927 # Get the command line arguments, the working directory and the |
1927 # Get the command line arguments, the working directory and the |
1928 # exception reporting flag. |
1928 # exception reporting flag. |
1929 cap = ( |
1929 cap = ( |
1930 self.tr("Coverage of Project") |
1930 self.tr("Coverage Run of Project") |
1931 if runProject |
1931 if runProject |
1932 else self.tr("Coverage of Script") |
1932 else self.tr("Coverage Run of Script") |
1933 ) |
1933 ) |
1934 if runProject: |
1934 if runProject: |
1935 scriptName = self.project.getMainScript(True) |
1935 scriptName = self.project.getMainScript(True) |
1936 if not scriptName: |
1936 if not scriptName: |
1937 EricMessageBox.critical( |
1937 EricMessageBox.critical( |
1938 self.ui, |
1938 self.ui, |
1939 self.tr("Coverage of Project"), |
1939 self.tr("Coverage Run of Project"), |
1940 self.tr( |
1940 self.tr( |
1941 "There is no main script defined for the" |
1941 "There is no main script defined for the" |
1942 " current project. Aborting" |
1942 " current project. Aborting" |
1943 ), |
1943 ), |
1944 ) |
1944 ) |
1956 self.wdHistory, |
1956 self.wdHistory, |
1957 self.envHistory, |
1957 self.envHistory, |
1958 self.exceptions, |
1958 self.exceptions, |
1959 self.unhandledExceptions, |
1959 self.unhandledExceptions, |
1960 self.ui, |
1960 self.ui, |
1961 2, |
1961 StartDialogMode.Coverage, |
1962 autoClearShell=self.autoClearShell, |
1962 autoClearShell=self.autoClearShell, |
1963 configOverride=self.overrideGlobalConfig, |
1963 configOverride=self.overrideGlobalConfig, |
1964 forProject=runProject, |
1964 forProject=runProject, |
1965 scriptName=scriptName, |
1965 scriptName=scriptName, |
1966 scriptsList=self.scriptsHistory, |
1966 scriptsList=self.scriptsHistory, |
2121 (True) or script (False) |
2121 (True) or script (False) |
2122 @type bool |
2122 @type bool |
2123 @param script name of a script (optional) |
2123 @param script name of a script (optional) |
2124 @type str |
2124 @type str |
2125 """ |
2125 """ |
2126 from .StartDialog import StartDialog |
2126 from .StartDialog import StartDialog, StartDialogMode |
2127 |
2127 |
2128 self.__resetUI() |
2128 self.__resetUI() |
2129 doNotStart = False |
2129 doNotStart = False |
2130 |
2130 |
2131 # Get the command line arguments, the working directory and the |
2131 # Get the command line arguments, the working directory and the |
2132 # exception reporting flag. |
2132 # exception reporting flag. |
2133 cap = ( |
2133 cap = ( |
2134 self.tr("Profile of Project") |
2134 self.tr("Profile Run of Project") |
2135 if runProject |
2135 if runProject |
2136 else self.tr("Profile of Script") |
2136 else self.tr("Profile Run of Script") |
2137 ) |
2137 ) |
2138 if runProject: |
2138 if runProject: |
2139 scriptName = self.project.getMainScript(True) |
2139 scriptName = self.project.getMainScript(True) |
2140 if not scriptName: |
2140 if not scriptName: |
2141 EricMessageBox.critical( |
2141 EricMessageBox.critical( |
2142 self.ui, |
2142 self.ui, |
2143 self.tr("Profile of Project"), |
2143 self.tr("Profile Run of Project"), |
2144 self.tr( |
2144 self.tr( |
2145 "There is no main script defined for the" |
2145 "There is no main script defined for the" |
2146 " current project. Aborting" |
2146 " current project. Aborting" |
2147 ), |
2147 ), |
2148 ) |
2148 ) |
2160 self.wdHistory, |
2160 self.wdHistory, |
2161 self.envHistory, |
2161 self.envHistory, |
2162 self.exceptions, |
2162 self.exceptions, |
2163 self.unhandledExceptions, |
2163 self.unhandledExceptions, |
2164 self.ui, |
2164 self.ui, |
2165 3, |
2165 StartDialogMode.Profile, |
2166 autoClearShell=self.autoClearShell, |
2166 autoClearShell=self.autoClearShell, |
2167 configOverride=self.overrideGlobalConfig, |
2167 configOverride=self.overrideGlobalConfig, |
2168 forProject=runProject, |
2168 forProject=runProject, |
2169 scriptName=scriptName, |
2169 scriptName=scriptName, |
2170 scriptsList=self.scriptsHistory, |
2170 scriptsList=self.scriptsHistory, |
2360 self.wdHistory, |
2360 self.wdHistory, |
2361 self.envHistory, |
2361 self.envHistory, |
2362 self.exceptions, |
2362 self.exceptions, |
2363 self.unhandledExceptions, |
2363 self.unhandledExceptions, |
2364 self.ui, |
2364 self.ui, |
2365 1, |
2365 StartDialogMode.Run, |
2366 autoClearShell=self.autoClearShell, |
2366 autoClearShell=self.autoClearShell, |
2367 configOverride=self.overrideGlobalConfig, |
2367 configOverride=self.overrideGlobalConfig, |
2368 forProject=runProject, |
2368 forProject=runProject, |
2369 scriptName=scriptName, |
2369 scriptName=scriptName, |
2370 scriptsList=self.scriptsHistory, |
2370 scriptsList=self.scriptsHistory, |
2555 self.wdHistory, |
2555 self.wdHistory, |
2556 self.envHistory, |
2556 self.envHistory, |
2557 self.exceptions, |
2557 self.exceptions, |
2558 self.unhandledExceptions, |
2558 self.unhandledExceptions, |
2559 self.ui, |
2559 self.ui, |
2560 0, |
2560 StartDialogMode.Debug, |
2561 tracePython=self.tracePython, |
2561 tracePython=self.tracePython, |
2562 autoClearShell=self.autoClearShell, |
2562 autoClearShell=self.autoClearShell, |
2563 autoContinue=self.autoContinue, |
2563 autoContinue=self.autoContinue, |
2564 enableMultiprocess=self.enableMultiprocess, |
2564 enableMultiprocess=self.enableMultiprocess, |
2565 multiprocessNoDebugHistory=self.multiprocessNoDebugHistory, |
2565 multiprocessNoDebugHistory=self.multiprocessNoDebugHistory, |