diff --git a/onionr/default-plugins/gui/main.py b/onionr/default-plugins/gui/main.py index 6cf78289..c7dc0453 100644 --- a/onionr/default-plugins/gui/main.py +++ b/onionr/default-plugins/gui/main.py @@ -17,7 +17,6 @@ # Imports some useful libraries import logger, config -from tkinter import * import os, sqlite3, core def sendMessage(): @@ -56,6 +55,8 @@ def update(): def openGUI(): + from tkinter import * + global root, runningCheckDelay, runningCheckDelayCount, scrollbar, listedBlocks, nodeInfo, keyInfo, idText, idEntry, pubKeyEntry, listbox, daemonStatus, sendEntry root = Tk() diff --git a/onionr/onionr.py b/onionr/onionr.py index 3e895638..54937e0f 100755 --- a/onionr/onionr.py +++ b/onionr/onionr.py @@ -445,7 +445,7 @@ class Onionr: os.makedirs(plugins.get_plugins_folder(plugin_name)) with open(plugins.get_plugins_folder(plugin_name) + '/main.py', 'a') as main: - main.write(open('default_plugin.txt').read().replace('$user', os.getlogin()).replace('$date', datetime.datetime.now().strftime('%Y-%m-%d'))) + main.write(open('static-data/default_plugin.txt').read().replace('$user', os.getlogin()).replace('$date', datetime.datetime.now().strftime('%Y-%m-%d'))) logger.info('Enabling plugin \"' + plugin_name + '\"...') plugins.enable(plugin_name, self) diff --git a/onionr/static-data/bootstrap-nodes.txt b/onionr/static-data/bootstrap-nodes.txt index a94536b3..5473550f 100644 --- a/onionr/static-data/bootstrap-nodes.txt +++ b/onionr/static-data/bootstrap-nodes.txt @@ -1,3 +1,2 @@ -onionisrgccylxpr.onion onionragxuddecmg.onion dgyllprmtmym4gbk.onion diff --git a/onionr/default_plugin.txt b/onionr/static-data/default_plugin.txt similarity index 100% rename from onionr/default_plugin.txt rename to onionr/static-data/default_plugin.txt