changeset 11856:ee51db2f6a6a release-3-0-x

load-path.cc (load_path::do_initialize): look for OCTAVE_PATH in the environment, not OCTAVE_LOADPATH
author John W. Eaton <jwe@octave.org>
date Mon, 29 Sep 2008 07:21:47 +0200
parents eff8ac793dbf
children 588660d73fa1
files src/ChangeLog src/load-path.cc
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-24  John W. Eaton  <jwe@octave.org>
+
+	* load-path.cc (load_path::do_initialize): Check for OCTAVE_PATH
+	in the environment, not OCTAVE_LOADPATH.
+
 2008-09-18  David Bateman  <dbateman@free.fr>
 
 	* DLD-FUNCTIONS/fftw.cc (Ffftw): Clarify the documentation.
--- a/src/load-path.cc
+++ b/src/load-path.cc
@@ -374,7 +374,7 @@
   std::string tpath = load_path::command_line_path;
 
   if (tpath.empty ())
-    tpath = octave_env::getenv ("OCTAVE_LOADPATH");
+    tpath = octave_env::getenv ("OCTAVE_PATH");
 
   std::string xpath = ".";