Revert "File.js"
[app.Builder.js] / gtkrun.js
index 5323d65..1ec53ad 100644 (file)
--- a/gtkrun.js
+++ b/gtkrun.js
@@ -60,6 +60,8 @@ XObject = imports.XObject.XObject;
 //XObject.debug = true;
 Gtk.init(Seed.argv);
 
+Globals = imports.Globals;
+
 
 imports.searchPath.push('/'); // allow global paths..
 // error checking todo..
@@ -69,20 +71,23 @@ var olist = [];
 var gtkbuilder = false;
 files.forEach(function(f) {
     var fp = Seed.argv[2] + '/' + f;
-    if (!fp.match(/\.bjs$/)) {
+    
+    
+    
+    if (!fp.match(/\.js$/)) {
         return;
     }
-    var js = fp.replace(/\.bjs$/, '.js');
+    var js = fp; //.replace(/\.js$/, '.js');
     if (File.isFile(js)) {
         // check file time.. = bjs is less than compiled file..
-        if (File.mtime(fp) < File.mtime(js)) {
+        //if (File.mtime(fp) < File.mtime(js)) {
             XObject.log("LOADING" + js);
             olist.push(imports[js]);
             return;
-        }
+        //}
         // Compiling BJS is depreciated..
-        olist.push(imports[js]);
-        return;
+        //olist.push(imports[js]);
+        //return;
         
     }