diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-23 09:24:34 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-23 09:24:34 (GMT) |
commit | df6298b8f0f2144ad8e975ab0b0b30cc73ee9b5c (patch) | |
tree | 714fe10115f7c7e785072ff40071039712f6b5b3 /plugins/python/samples/demo.py | |
parent | 1e46553615fa6a7057a7c46c249485365b4c147c (diff) |
Fix the Python scripts loading.
Diffstat (limited to 'plugins/python/samples/demo.py')
-rw-r--r-- | plugins/python/samples/demo.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/plugins/python/samples/demo.py b/plugins/python/samples/demo.py deleted file mode 100644 index c406231..0000000 --- a/plugins/python/samples/demo.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -from pychrysalide import Plugin -from pychrysalide.gui.panels import LogPanel - -from basic_blocks import show_basic_blocks - - -class Demo(Plugin): - """Demonstration plugin.""" - - def init(self, ref): - """Initialize the plugin.""" - - LogPanel.log_message(LogPanel.LMT_WARNING, 'Welcome to the demo Python plugin !') - - return True - - - def get_action(self): - """Register the plugin for given actions.""" - - return Plugin.PGA_BINARY_GROUPED - - - def execute_on_binary(self, binary, action): - """Process registered actions.""" - - show_basic_blocks(binary) |