From c9c1222104deb8ef62f4e165126f4776634d01b4 Mon Sep 17 00:00:00 2001 From: Matthias Baumgartner Date: Wed, 25 Jan 2023 10:39:46 +0100 Subject: shell drop --- tagit/actions/misc.py | 10 ++++++++-- 1 file 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): -- cgit v1.2.3