fix paths in database inspection
authorSteve Hackbarth <stephenhackbarth@gmail.com>
Fri, 22 Aug 2014 20:07:03 +0000 (15:07 -0500)
committerSteve Hackbarth <stephenhackbarth@gmail.com>
Fri, 22 Aug 2014 20:07:03 +0000 (15:07 -0500)
scripts/lib/util/inspect_database.js

index e9e80ac..484361d 100644 (file)
@@ -11,13 +11,13 @@ regexp:true, undef:true, strict:true, trailing:true, white:true */
 
   var pathFromExtension = function (name, location) {
     if (location === '/core-extensions') {
-      return path.join(__dirname, "/../../enyo-client/extensions/source/", name);
+      return path.join(__dirname, "../../../enyo-client/extensions/source/", name);
     } else if (location === '/xtuple-extensions') {
-      return path.join(__dirname, "../../../xtuple-extensions/source", name);
+      return path.join(__dirname, "../../../../xtuple-extensions/source", name);
     } else if (location === '/private-extensions') {
-      return path.join(__dirname, "../../../private-extensions/source", name);
+      return path.join(__dirname, "../../../../private-extensions/source", name);
     } else if (location === 'npm') {
-      return path.join(__dirname, "../../node_modules", name);
+      return path.join(__dirname, "../../../node_modules", name);
     }
   };
 
@@ -55,7 +55,7 @@ regexp:true, undef:true, strict:true, trailing:true, white:true */
       }
       var extensions = _.unique(_.flatten(_.map(res.rows, function (row) {
         return _.map(editionMap[row.pkghead_name], function (ext) {
-          return path.join(__dirname, "../../../private-extensions/source", ext);
+          return path.join(__dirname, "../../../../private-extensions/source", ext);
         });
       })));
       done(err, defaultExtensions.concat(extensions));