Need to set a global myPackageDir before loading the OpenSRF scripts.
authorphasefx <phasefx@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 11 Feb 2005 15:42:50 +0000 (15:42 +0000)
committerphasefx <phasefx@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 11 Feb 2005 15:42:50 +0000 (15:42 +0000)
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

index 1beef71..39037ea 100644 (file)
@@ -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 );