# HG changeset patch # User jwe # Date 1200358168 0 # Node ID 26b667edc07a2a69de59e821633a6f3e1b3ff0ae # Parent 96d25ed408e5972aa2e35dcc4837b00cb5d23695 [3-0-0-branch @ 2008-01-15 00:49:27 by jwe] diff -r 96d25ed408e5 -r 26b667edc07a src/ChangeLog --- a/src/ChangeLog Mon Jan 14 19:50:16 2008 +0000 +++ b/src/ChangeLog Tue Jan 15 00:49:28 2008 +0000 @@ -1,3 +1,8 @@ +2008-01-14 John W. Eaton + + * load-path.cc (load_path::do_initialize): Start with sys_path empty. + (maybe_add_path_elts): Omit path_sep_str if path is empty. + 2008-01-10 John W. Eaton * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Doc fix. diff -r 96d25ed408e5 -r 26b667edc07a src/load-path.cc --- a/src/load-path.cc Mon Jan 14 19:50:16 2008 +0000 +++ b/src/load-path.cc Tue Jan 15 00:49:28 2008 +0000 @@ -346,13 +346,18 @@ std::string tpath = genpath (dir); if (! tpath.empty ()) - path += dir_path::path_sep_str + tpath; + { + if (path.empty ()) + path = tpath; + else + path += dir_path::path_sep_str + tpath; + } } void load_path::do_initialize (bool set_initial_path) { - sys_path = dir_path::path_sep_str; + sys_path = ""; if (set_initial_path) { @@ -376,7 +381,7 @@ if (! tpath.empty ()) xpath += dir_path::path_sep_str + tpath; - if (sys_path != dir_path::path_sep_str) + if (! sys_path.empty ()) xpath += sys_path; do_set (xpath, false);