summaryrefslogtreecommitdiffstats
path: root/module/plugins/Base.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/Base.py')
-rw-r--r--module/plugins/Base.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/module/plugins/Base.py b/module/plugins/Base.py
index 5a78fddc3..36df7e423 100644
--- a/module/plugins/Base.py
+++ b/module/plugins/Base.py
@@ -17,6 +17,8 @@
@author: RaNaN
"""
+import sys
+
# TODO: config format definition
# more attributes if needed
# get rid of catpcha & container plugins ?! (move to crypter & internals)
@@ -119,3 +121,11 @@ class Base(object):
def delStorage(self, key):
""" Delete entry in db """
self.core.db.delStorage(self.__name__, key)
+
+ def shell(self):
+ """ open ipython shell """
+ if self.core.debug:
+ from IPython import embed
+ #noinspection PyUnresolvedReferences
+ sys.stdout = sys._stdout
+ embed()