From d6ad5b051f3c009c8c6d7209c52d8048f7c53177 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 9 Mar 2009 14:30:45 -0500 Subject: [PATCH] Fix math to be capable of using externally-installed third-party packages, while still providing them for people who don't have them externally installed. --- plugins/Math/{convertcore.py => our_convertcore.py} | 0 plugins/Math/plugin.py | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) rename plugins/Math/{convertcore.py => our_convertcore.py} (100%) diff --git a/plugins/Math/convertcore.py b/plugins/Math/our_convertcore.py similarity index 100% rename from plugins/Math/convertcore.py rename to plugins/Math/our_convertcore.py diff --git a/plugins/Math/plugin.py b/plugins/Math/plugin.py index aa580d22c..44469ba8c 100644 --- a/plugins/Math/plugin.py +++ b/plugins/Math/plugin.py @@ -40,7 +40,10 @@ import supybot.utils as utils from supybot.commands import * import supybot.callbacks as callbacks -import convertcore +try: + import convertcore +except ImportError: + import our_convertcore as convertcore baseArg = ('int', 'base', lambda i: i <= 36)