aboutsummaryrefslogtreecommitdiffstats
path: root/tagit
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-01-25 10:39:46 +0100
committerMatthias Baumgartner <dev@igsor.net>2023-01-25 10:39:46 +0100
commitc9c1222104deb8ef62f4e165126f4776634d01b4 (patch)
treed93f74edf453cafec7d5ecb7a950c0c366b51afd /tagit
parent20d31b0c4a61b5f026fc8b0ff98c43b8a00bee48 (diff)
downloadtagit-c9c1222104deb8ef62f4e165126f4776634d01b4.tar.gz
tagit-c9c1222104deb8ef62f4e165126f4776634d01b4.tar.bz2
tagit-c9c1222104deb8ef62f4e165126f4776634d01b4.zip
shell drop
Diffstat (limited to 'tagit')
-rw-r--r--tagit/actions/misc.py10
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):