From 22da325656c94aaa4fd57f0c164e31f12c67202e Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 11 Mar 2009 19:58:21 -0400 Subject: [PATCH] Math: Move convertcore to the local directory There's no need to try importing a system-wide copy (for now) as convertcore is our own munging of convertall's code into a form that's easy for us to use. This may change in the future. Signed-off-by: James Vega --- plugins/Math/local/__init__.py | 1 + plugins/Math/{our_convertcore.py => local/convertcore.py} | 0 plugins/Math/plugin.py | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 plugins/Math/local/__init__.py rename plugins/Math/{our_convertcore.py => local/convertcore.py} (100%) diff --git a/plugins/Math/local/__init__.py b/plugins/Math/local/__init__.py new file mode 100644 index 000000000..e86e97b86 --- /dev/null +++ b/plugins/Math/local/__init__.py @@ -0,0 +1 @@ +# Stub so local is a module, used for third-party modules diff --git a/plugins/Math/our_convertcore.py b/plugins/Math/local/convertcore.py similarity index 100% rename from plugins/Math/our_convertcore.py rename to plugins/Math/local/convertcore.py diff --git a/plugins/Math/plugin.py b/plugins/Math/plugin.py index d50a9bfaa..d3bb5aeb0 100644 --- a/plugins/Math/plugin.py +++ b/plugins/Math/plugin.py @@ -40,7 +40,7 @@ import supybot.utils as utils from supybot.commands import * import supybot.callbacks as callbacks -convertcore = utils.python.universalImport('convertcore', 'our_convertcore') +convertcore = utils.python.universalImport('local.convertcore') baseArg = ('int', 'base', lambda i: i <= 36)