>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

Angus> On Tuesday 26 March 2002 4:11 pm, Kayvan A. Sylvan wrote:
>> On Tue, Mar 26, 2002 at 09:20:53AM +0100, Herbert Voss wrote:
>> > Kayvan A. Sylvan wrote:
>> > >Latest CVS, a document that was loading just fine as of a few
>> days > > ago... Now I can no longer ``View Postscript''.
>> 
>> I found the problem. A recent change makes LyX output the absolute
>> path to the graphics file (instead of a relative path).

Angus> It will only output the absolute path if the file is stored as
Angus> an absolute path. If you store it as relative to your doc, then
Angus> it'll output the relative path. That has to conform to the
Angus> principle of least surprise.

Yes, but we have nice function for that in os.h:
        static string external_path(string const &p);

Angus> I'm not sure what the right solution is here. Modify
Angus> MakeAbsPath for cygwin?

Could you tell me what prepareFile does and what kind of path it is
supposed to output? I cannot understand the code.

Angus> I don't think that we should do anything to fix files that are
Angus> already stored as absolute paths but are stored incorrectly.
Angus> That would just introduce special code to deal with living on
Angus> the bleeding edge.

Actually, paths can be stored as unix paths, but they have to be
converted to cygwin (or OS/2) before use by an external program.

I have to admit all is not clear yet to me, but use of os:: functions
in the code should enlighten you :)

JMArc

Reply via email to