[seed] Extensions: Don't recreate the importer search path unless it doesn't exist or is empty.
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Extensions: Don't recreate the importer search path unless it doesn't exist or is empty.
- Date: Wed, 3 Jun 2009 21:34:03 -0400 (EDT)
commit 87220e8e64ad3804ceb8b2a69ca760505c1131c2
Author: Tim Horton <hortont svn gnome org>
Date: Wed Jun 3 21:32:17 2009 -0400
Extensions: Don't recreate the importer search path unless it doesn't exist or is empty.
---
extensions/Seed.js.in | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/extensions/Seed.js.in b/extensions/Seed.js.in
index c3fdacb..f85e46a 100644
--- a/extensions/Seed.js.in
+++ b/extensions/Seed.js.in
@@ -170,5 +170,6 @@ Seed.thread_repl = function()
Seed.printf = function () { print(Seed.sprintf.apply(this, arguments)) };
-imports.searchPath = ["@GNOME_JS_DIR@", "@prefix@/lib/seed", "@prefix@/share/seed", "/usr/local/lib/seed","/usr/local/share/seed","/usr/lib/seed","/usr/share/seed","."];
+if(!imports.searchPath || (imports.searchPath.length == 0))
+ imports.searchPath = ["@GNOME_JS_DIR@", "@prefix@/lib/seed", "@prefix@/share/seed", "/usr/local/lib/seed","/usr/local/share/seed","/usr/lib/seed","/usr/share/seed","."];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]