Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
8585:e6497be3f3d6 | 8586:31ab3b83bc8a |
---|---|
214 { | 214 { |
215 if (command_line_path.empty ()) | 215 if (command_line_path.empty ()) |
216 command_line_path = p; | 216 command_line_path = p; |
217 else | 217 else |
218 command_line_path += dir_path::path_sep_str () + p; | 218 command_line_path += dir_path::path_sep_str () + p; |
219 } | |
220 | |
221 static std::string get_command_line_path (void) | |
222 { | |
223 return instance_ok () ? instance->do_get_command_line_path () : std::string (); | |
219 } | 224 } |
220 | 225 |
221 static std::string system_path (void) | 226 static std::string system_path (void) |
222 { | 227 { |
223 return instance_ok () ? instance->do_system_path () : std::string (); | 228 return instance_ok () ? instance->do_system_path () : std::string (); |
484 | 489 |
485 void do_display (std::ostream& os) const; | 490 void do_display (std::ostream& os) const; |
486 | 491 |
487 std::string do_system_path (void) const { return sys_path; } | 492 std::string do_system_path (void) const { return sys_path; } |
488 | 493 |
494 std::string do_get_command_line_path (void) const { return command_line_path; } | |
495 | |
489 void add_to_fcn_map (const dir_info& di, bool at_end) const; | 496 void add_to_fcn_map (const dir_info& di, bool at_end) const; |
490 | 497 |
491 void add_to_private_fcn_map (const dir_info& di) const; | 498 void add_to_private_fcn_map (const dir_info& di) const; |
492 | 499 |
493 void add_to_method_map (const dir_info& di, bool at_end) const; | 500 void add_to_method_map (const dir_info& di, bool at_end) const; |