[seed] Add a default search path



commit 36f38b756b74d4e04a4bddd2eb260e5970001ea3
Author: Robert Carr <racarr mireia (none)>
Date:   Sun Apr 12 09:32:42 2009 -0400

    Add a default search path
---
 extensions/Seed.js |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/extensions/Seed.js b/extensions/Seed.js
index 2559f3e..747f549 100755
--- a/extensions/Seed.js
+++ b/extensions/Seed.js
@@ -623,7 +623,7 @@ Seed.repl = function()
 			return true;
 		}
 	}
-	
+
 	try
 	{
 		item = readline.readline("> ");
@@ -646,10 +646,12 @@ Seed.glib_repl = function()
 
 Seed.thread_repl = function()
 {
-	GLib.thread_create_full(function() { while(Seed.repl()){} }, 
+	GLib.thread_create_full(function() { while(Seed.repl()){} },
 							null, 0, true);
-	
+
 }
 
 Seed.printf = function () { Seed.print(Seed.sprintf.apply(this, arguments)) };
 
+imports.searchPath = [".", "/usr/local/lib/seed", "/usr/lib/seed"];
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]