Mercurial > hg > octave-lyh
diff src/load-path.cc @ 5871:b9fd54407c8d
[project @ 2006-06-30 16:48:39 by jwe]
author | jwe |
---|---|
date | Fri, 30 Jun 2006 16:48:40 +0000 |
parents | b305874f50ef |
children | a65b51ed388c |
line wrap: on
line diff
--- a/src/load-path.cc +++ b/src/load-path.cc @@ -509,12 +509,7 @@ i = find_dir_info ("."); if (i != dir_info_list.end ()) - { - if (i != dir_info_list.begin () && warn) - warning ("addpath: \".\" is always first in the path"); - - move (i, false); - } + move (i, false); else panic_impossible (); } @@ -1140,9 +1135,7 @@ { std::string retval; - std::string full_dirname = file_ops::tilde_expand (dirname); - - dir_entry dir (full_dirname); + dir_entry dir (dirname); if (dir) { @@ -1172,7 +1165,7 @@ if (! skip_p) { - std::string nm = full_dirname + file_ops::dir_sep_str + elt; + std::string nm = dirname + file_ops::dir_sep_str + elt; file_stat fs (nm);