Mercurial > hg > octave-lyh
diff src/load-path.h @ 8586:31ab3b83bc8a
savepath: Respect cmd-line and env paths.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sat, 24 Jan 2009 14:53:44 -0500 |
parents | c91b59532f32 |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/src/load-path.h +++ b/src/load-path.h @@ -218,6 +218,11 @@ command_line_path += dir_path::path_sep_str () + p; } + static std::string get_command_line_path (void) + { + return instance_ok () ? instance->do_get_command_line_path () : std::string (); + } + static std::string system_path (void) { return instance_ok () ? instance->do_system_path () : std::string (); @@ -486,6 +491,8 @@ std::string do_system_path (void) const { return sys_path; } + std::string do_get_command_line_path (void) const { return command_line_path; } + void add_to_fcn_map (const dir_info& di, bool at_end) const; void add_to_private_fcn_map (const dir_info& di) const;