delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/08/09:30:22

From: krand AT ican DOT net (Andrew Ellem)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Relative Pathnames
Date: Fri, 08 May 1998 13:20:59 GMT
Organization: ICAN.Net Customer
Lines: 25
Message-ID: <6iv0m3$fs7$1@news2.tor.accglobal.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980508123321 DOT 9473F-100000 AT is>
NNTP-Posting-Host: ppp-240.m2-13.tor.ican.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <Pine DOT SUN DOT 3 DOT 91 DOT 980508123321 DOT 9473F-100000 AT is>, Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
>
>On Thu, 7 May 1998, Andrew Ellem wrote:

>> I'm in need of a function which converts absolute pathnames (i.e. 
>> "d:/dj/bin/gcc.exe") to paths releative to a given directory  (i.e. 
>>  ../gcc.exe").
>
>There's no such function already in the library, unless I miss something. 
>You will have to roll your own.
>
>OTOH, if you explain what exactly do you need this for, maybe there's 
>another solution to your original problem.

Well, I writing a map/game editor, and the problem is that the maps hold
the filename of the tilesets they use.  They work fine on my computer, but if 
someone else doesn't run the program from "d:\djgpp\editor\" then it can't 
find the files...

I can't think of a better solution so I guess I'll have to write my own...

--
Andrew Ellem
krand AT ican DOT net

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019