Index: jquery_ui.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jquery_ui/jquery_ui.install,v
retrieving revision 1.3
diff -u -p -r1.3 jquery_ui.install
--- jquery_ui.install	15 Jun 2008 05:15:11 -0000	1.3
+++ jquery_ui.install	16 Mar 2009 04:34:19 -0000
@@ -17,7 +17,7 @@ function jquery_ui_requirements($phase) 
   if ($phase == 'install') {
     // The jquery_ui_get_version() function is in the .module file, which isn't
     // loaded yet.
-    include_once drupal_get_path('module', 'jquery_ui') . '/jquery_ui.module';
+    include_once dirname(__FILE__) . '/jquery_ui.module';
   }
 
   $requirements['jquery_ui']['title'] = $t('jQuery UI');
Index: jquery_ui.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jquery_ui/jquery_ui.module,v
retrieving revision 1.5
diff -u -p -r1.5 jquery_ui.module
--- jquery_ui.module	22 Jun 2008 20:09:58 -0000	1.5
+++ jquery_ui.module	16 Mar 2009 04:34:19 -0000
@@ -12,8 +12,17 @@
 
 /**
  * Path to jQuery UI library.
+ * 
+ * During site installation, JQUERY_UI_PATH is the absolute path to the
+ * jQuery UI library.  At all other times JQUERY_UI_PATH is relative, and
+ * safe for use in URLs.
  */
-define('JQUERY_UI_PATH', drupal_get_path('module', 'jquery_ui') . '/jquery.ui');
+if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'install') {
+  define('JQUERY_UI_PATH', dirname(__FILE__) . '/jquery.ui');
+}
+else {
+  define('JQUERY_UI_PATH', drupal_get_path('module', 'jquery_ui') . '/jquery.ui');
+}
  
 /**
  * Add the specified jQuery UI library files to this page.
