octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hgload problems


From: Rik
Subject: Re: hgload problems
Date: Thu, 27 Mar 2014 08:54:29 -0700

On 03/27/2014 08:32 AM, address@hidden wrote:
> Message: 6 Date: Thu, 27 Mar 2014 07:22:50 -0700 (PDT) From: Muhali
> <address@hidden> To: address@hidden Subject: Re:
> hgsave("foo") ; hgload("foo") not working Message-ID:
> <address@hidden> Content-Type: text/plain;
> charset=us-ascii Mike Miller wrote
>> > The latter should work, it works for me.
>> > 
>> > This is analogous to Matlab appending .fig in both hgload and hgsave if
>> > no file extension is given.
>> > 
>> >   http://www.mathworks.com/help/matlab/ref/hgsave.html
>> > 
>> > Presumably .ofig is to make it clear that these are Octave format files.
> if there is another file "foo.m" in the same directory you get the mentioned
> error (took me a while to find out). So I would consider this a bug (related
> to the 'Check file existence' part in hgload).
The problem is that the code used exist() to check for files and exist
searches for both the absolute file name and the file name + ".m".  I
changed the code to use file_in_loadpath() in this changeset
(http://hg.savannah.gnu.org/hgweb/octave/rev/70d9db29db6f) and this now
works for me.

--Rik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]