From 7c5702f4139561bb80702922883ddd26d27118a8 Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 11 Feb 2005 15:42:50 +0000 Subject: [PATCH] Need to set a global myPackageDir before loading the OpenSRF scripts. I'm sure there is a better Mozilla way to do this (what directory in chrome am I actually running from?) git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@45 9efc2488-bf62-4759-914b-345cdb29e865 --- src/javascript/opensrf_config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/javascript/opensrf_config.js b/src/javascript/opensrf_config.js index 1beef71..39037ea 100644 --- a/src/javascript/opensrf_config.js +++ b/src/javascript/opensrf_config.js @@ -13,7 +13,7 @@ function get_config_file() { getService( Components.interfaces.nsIProperties ); chromeDir = dirService.get( "AChrom", Components.interfaces.nsIFile ); - chromeDir.append("evergreen"); + chromeDir.append(myPackageDir); chromeDir.append("content"); chromeDir.append("conf"); chromeDir.append("client_config.xml"); @@ -178,7 +178,7 @@ Logger.get_log_file = function( log_name ) { getService( Components.interfaces.nsIProperties ); logFile = dirService.get( "AChrom", Components.interfaces.nsIFile ); - logFile.append("evergreen"); + logFile.append(myPackageDir); logFile.append("content"); logFile.append("log"); logFile.append( log_name ); -- 2.11.0