Mercurial > hg > octave-nkf
diff src/load-path.h @ 5835:07dd13bfc0ba
[project @ 2006-05-31 18:21:49 by jwe]
author | jwe |
---|---|
date | Wed, 31 May 2006 18:21:57 +0000 |
parents | 5e41e06f6a78 |
children | e884ab4f29ee |
line wrap: on
line diff
--- a/src/load-path.h +++ b/src/load-path.h @@ -29,6 +29,7 @@ #include <map> #include <string> +#include "pathsearch.h" #include "str-vec.h" class @@ -159,7 +160,10 @@ static void set_command_line_path (const std::string& p) { - command_line_path = p; + if (command_line_path.empty ()) + command_line_path = p; + else + command_line_path += dir_path::path_sep_str + p; } private: