From 298729a12c07ddcdfcff8eefe4c260f9bc4c6c44 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Wed, 3 Dec 2008 18:13:27 +0000 Subject: [PATCH] made import OS-independent bzr-revno: 172 --- openlp/core/pluginmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/core/pluginmanager.py b/openlp/core/pluginmanager.py index 38cf7c65a..98caaa755 100644 --- a/openlp/core/pluginmanager.py +++ b/openlp/core/pluginmanager.py @@ -60,7 +60,7 @@ class PluginManager(object): prefix = os.path.commonprefix([self.basepath, path]) # hack off the plugin base path modulename = modulename[len(prefix) + 1:] - modulename = modulename.replace('/', '.') + modulename = modulename.replace(os.path.sep, '.') # import the modules log.debug("Importing %s from %s." % (modulename, path)) try: