Thu, 17 Dec 2020 18:17:33 +0100
DebugUtilities: fixed a little issue.
eric6/DebugClients/Python/DebugUtilities.py | file | annotate | diff | comparison | revisions | |
eric6/Debugger/DebugViewer.py | file | annotate | diff | comparison | revisions |
--- a/eric6/DebugClients/Python/DebugUtilities.py Thu Dec 17 17:56:35 2020 +0100 +++ b/eric6/DebugClients/Python/DebugUtilities.py Thu Dec 17 18:17:33 2020 +0100 @@ -188,16 +188,21 @@ @rtype bool """ try: - with open(program) as f: - for line in f: - line = line.strip() - if line: - for name in PYTHON_NAMES: - if line.startswith('#!/usr/bin/env {0}'.format(name)): - return True - elif line.startswith('#!') and name in line: - return True - return False + if os.path.exists(program): + with open(program) as f: + for line in f: + line = line.strip() + if line: + for name in PYTHON_NAMES: + if line.startswith( + '#!/usr/bin/env {0}'.format(name) + ): + return True + elif line.startswith('#!') and name in line: + return True + return False + else: + return False except UnicodeDecodeError: return False except Exception:
--- a/eric6/Debugger/DebugViewer.py Thu Dec 17 17:56:35 2020 +0100 +++ b/eric6/Debugger/DebugViewer.py Thu Dec 17 18:17:33 2020 +0100 @@ -279,7 +279,7 @@ self.__threadList.currentItemChanged.connect(self.__threadSelected) - self.__mainSplitter.setSizes([100, 500, 100]) + self.__mainSplitter.setSizes([50, 700, 50]) self.currentStack = None self.framenr = 0