gtkrun.js
authorAlan Knowles <alan@akbkhome.com>
Sun, 23 May 2010 14:03:47 +0000 (22:03 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 23 May 2010 14:03:47 +0000 (22:03 +0800)
gtkrun.js

index a0c6e7d..9ffd26b 100644 (file)
--- a/gtkrun.js
+++ b/gtkrun.js
@@ -49,13 +49,13 @@ files.forEach(function(f) {
     if (!f.match(/\.bjs$/)) {
         continue;
     }
-    if (File.exist(f + '.js')) {
-        olist.push(imports[f + '.js']);
+    if (File.exist(f.replace(/\.bjs$/, '.js')) {
+        olist.push(imports[f.replace(/\.bjs$/, '.js')]);
         continue;
     }
     var gtkbuilder  new imports.Builder.Provider.File.Gtk.Gtk({ path : f });
     gtkbuilder.saveJS();
-    olist.push(imports[f + '.js']);
+    olist.push(imports[f.replace(/\.bjs$/, '.js')]);
     
     
 });