From f5a91e24f881b02c89204ba81878406dfc97de2c Mon Sep 17 00:00:00 2001 From: Stephen Steneker Date: Tue, 27 Sep 2016 15:54:52 +1000 Subject: [PATCH] Backout debugger change from #427 that introduced stdin usage regression (see #449) --- CHANGES.md | 1 - mtools/util/cmdlinetool.py | 10 +--------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index fff8ac57..8faa7d7d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -13,7 +13,6 @@ Changes to mtools * mlaunch: Allow --setParameter options (#445) * mloginfo: fixed showing the host in `rsstate` (#410) * mloginfo: fixed check for WT engine (#426) - * Enabled mtools utilities to be run under debugger #### version 1.2.1 diff --git a/mtools/util/cmdlinetool.py b/mtools/util/cmdlinetool.py index 8e2da983..0f96411a 100644 --- a/mtools/util/cmdlinetool.py +++ b/mtools/util/cmdlinetool.py @@ -75,15 +75,7 @@ def __init__(self): self.argparser = argparse.ArgumentParser() self.argparser.add_argument('--version', action='version', version="mtools version %s" % __version__) self.argparser.add_argument('--no-progressbar', action='store_true', default=False, help='disables progress bar') - """ PyCharm and other debuggers apparently run script in a non-TTY process. - For now, just ignore the fact that we are debugging - """ - if __debug__: - self.is_stdin = False - else: - self.is_stdin = not sys.stdin.isatty() - - + self.is_stdin = not sys.stdin.isatty() def run(self, arguments=None, get_unknowns=False):