[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with load
From: |
Andy Adler |
Subject: |
Re: Problem with load |
Date: |
Sat, 22 Feb 2003 13:55:28 -0500 (EST) |
I was about to submit a different patch for
my previous post, but John beat me to it!
My problem now is that load(), only looks in the current
directory (unlink Matlab, which searches the LOADPATH).
I recommend the following patch to fix this:
*** src/load-save.cc Sat Feb 22 13:31:12 2003
--- src/load-save.cc.orig Sat Feb 22 11:39:30 2003
***************
*** 3352,3358 ****
}
else
{
! std::string fname = file_ops::tilde_expand (file_in_path(argv[i],""));
if (format == LS_UNKNOWN)
format = get_file_format (fname, orig_fname);
--- 3352,3358 ----
}
else
{
! std::string fname = file_ops::tilde_expand (argv[i]);
if (format == LS_UNKNOWN)
format = get_file_format (fname, orig_fname);
Andy