Mercurial > hg > octave-lyh
diff src/load-path.cc @ 6365:ccdb8ffbb994
[project @ 2007-02-27 19:43:35 by jwe]
author | jwe |
---|---|
date | Tue, 27 Feb 2007 19:43:36 +0000 |
parents | 4942c93e37e3 |
children | 5d02dfacfc9e |
line wrap: on
line diff
--- a/src/load-path.cc +++ b/src/load-path.cc @@ -352,18 +352,21 @@ } void -load_path::do_initialize (void) +load_path::do_initialize (bool set_initial_path) { Vsystem_path = dir_path::path_sep_str; - maybe_add_path_elts (Vsystem_path, Vlocal_ver_oct_file_dir); - maybe_add_path_elts (Vsystem_path, Vlocal_api_oct_file_dir); - maybe_add_path_elts (Vsystem_path, Vlocal_oct_file_dir); - maybe_add_path_elts (Vsystem_path, Vlocal_ver_fcn_file_dir); - maybe_add_path_elts (Vsystem_path, Vlocal_api_fcn_file_dir); - maybe_add_path_elts (Vsystem_path, Vlocal_fcn_file_dir); - maybe_add_path_elts (Vsystem_path, Voct_file_dir); - maybe_add_path_elts (Vsystem_path, Vfcn_file_dir); + if (set_initial_path) + { + maybe_add_path_elts (Vsystem_path, Vlocal_ver_oct_file_dir); + maybe_add_path_elts (Vsystem_path, Vlocal_api_oct_file_dir); + maybe_add_path_elts (Vsystem_path, Vlocal_oct_file_dir); + maybe_add_path_elts (Vsystem_path, Vlocal_ver_fcn_file_dir); + maybe_add_path_elts (Vsystem_path, Vlocal_api_fcn_file_dir); + maybe_add_path_elts (Vsystem_path, Vlocal_fcn_file_dir); + maybe_add_path_elts (Vsystem_path, Voct_file_dir); + maybe_add_path_elts (Vsystem_path, Vfcn_file_dir); + } std::string tpath = load_path::command_line_path;