diff src/sat.tac @ 226:d8bb72f00eec

distutils install: fixed plugin import and log file path
author Goffi <goffi@goffi.org>
date Wed, 05 Jan 2011 02:39:35 +0100
parents fd9b7834d98a
children b1794cbb88e5
line wrap: on
line diff
--- a/src/sat.tac	Wed Jan 05 01:56:36 2011 +0100
+++ b/src/sat.tac	Wed Jan 05 02:39:35 2011 +0100
@@ -369,7 +369,9 @@
     def _import_plugins(self):
         """Import all plugins found in plugins directory"""
         #TODO: manage dependencies
-        plug_lst = [os.path.splitext(plugin)[0] for plugin in map(os.path.basename,glob ("plugins/plugin*.py"))]
+        import sat.plugins
+        plugins_path = os.path.dirname(sat.plugins.__file__) 
+        plug_lst = [os.path.splitext(plugin)[0] for plugin in map(os.path.basename,glob (os.path.join(plugins_path,"plugin*.py")))]
 
         for plug in plug_lst:
             plug_path = 'sat.plugins.'+plug