diff options
-rw-r--r-- | tagit/actions/misc.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tagit/actions/misc.py b/tagit/actions/misc.py index c0f960e..73e7935 100644 --- a/tagit/actions/misc.py +++ b/tagit/actions/misc.py @@ -5,8 +5,10 @@ A copy of the license is provided with the project. Author: Matthias Baumgartner, 2022 """ # standard imports +import code import logging import os +import sys # kivy imports from kivy.core.clipboard import Clipboard @@ -55,8 +57,12 @@ class ShellDrop(Action): text = kp.StringProperty('Shell') def apply(self): - from tagit import debug - debug(locals(), globals()) + loc = globals() + loc.update(locals()) + code.interact(banner='tagit shell', local=loc) + if loc.get('abort', False): + sys.exit(1) + class OpenExternal(Action): |