From 034410a6e87749866bf8ac5e853e93eccdfbe032 Mon Sep 17 00:00:00 2001 From: Arinerron Date: Wed, 18 Apr 2018 21:46:29 -0700 Subject: [PATCH] Remove test plugin --- onionr/onionrplugins.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/onionr/onionrplugins.py b/onionr/onionrplugins.py index ae9c8d8e..8ae098bb 100644 --- a/onionr/onionrplugins.py +++ b/onionr/onionrplugins.py @@ -226,9 +226,9 @@ def check(): logger.debug('Generating plugin data folder...') os.makedirs(os.path.dirname(get_plugins_folder())) - if not exists('test'): - os.makedirs(get_plugins_folder('test')) - with open(get_plugins_folder('test') + '/main.py', 'a') as main: - main.write("print('Running')\n\ndef on_test(onionr = None, data = None):\n print('received test event!')\n return True\n\ndef on_start(onionr = None, data = None):\n print('start event called')\n\ndef on_stop(onionr = None, data = None):\n print('stop event called')\n\ndef on_enable(onionr = None, data = None):\n print('enable event called')\n\ndef on_disable(onionr = None, data = None):\n print('disable event called')\n") - enable('test') + #if not exists('test'): + #os.makedirs(get_plugins_folder('test')) + #with open(get_plugins_folder('test') + '/main.py', 'a') as main: + #main.write("print('Running')\n\ndef on_test(onionr = None, data = None):\n print('received test event!')\n return True\n\ndef on_start(onionr = None, data = None):\n print('start event called')\n\ndef on_stop(onionr = None, data = None):\n print('stop event called')\n\ndef on_enable(onionr = None, data = None):\n print('enable event called')\n\ndef on_disable(onionr = None, data = None):\n print('disable event called')\n") + #enable('test') return