From 230e447ea5451cc762f40388c2dfdbab54429dfc Mon Sep 17 00:00:00 2001 From: jomo Date: Thu, 7 Aug 2014 03:00:44 +0200 Subject: [PATCH] use directory (untested!) --- toolbox/__init__.py | 4 ++++ rstoolbox.py => toolbox/rstoolbox.py | 0 2 files changed, 4 insertions(+) create mode 100644 toolbox/__init__.py rename rstoolbox.py => toolbox/rstoolbox.py (100%) diff --git a/toolbox/__init__.py b/toolbox/__init__.py new file mode 100644 index 0000000..7e21bdc --- /dev/null +++ b/toolbox/__init__.py @@ -0,0 +1,4 @@ +import glob +tools = [] +for module_name in glob.glob("plugins/redstoner-utils.py.dir/toolbox/*.py"): + tools.append(__import__(module_name)) diff --git a/rstoolbox.py b/toolbox/rstoolbox.py similarity index 100% rename from rstoolbox.py rename to toolbox/rstoolbox.py