From 438c313308beee18feb40f377e9ef72922b5e8b0 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Mon, 10 Dec 2012 12:56:56 -0500 Subject: [PATCH] Add an extra wrapper to make adding resources easy --- Melodia/resources/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Melodia/resources/__init__.py b/Melodia/resources/__init__.py index 896cc2c..b475fc0 100644 --- a/Melodia/resources/__init__.py +++ b/Melodia/resources/__init__.py @@ -4,3 +4,5 @@ def get_resource_dir(): os.path.abspath(__file__) ) +def add_resource_dir(): + sys.path.append(get_resource_dir())