<br><div class="gmail_quote">On Mon, May 9, 2011 at 10:40, matteo sisti sette <span dir="ltr">&lt;<a href="mailto:matteosistisette@gmail.com">matteosistisette@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
<br>
I&#39;d like to use [openpanel] to let a user easily chose a file without<br>
having to type its name, but then I would like to take the relative<br>
path of the file (relative to the patch) rather than its full absolute<br>
path. Is there a way to accomplish that?<br>
<br>
Is there some external that would take an absolute path as a symbol,<br>
compare it to the current working directory, and return a relative<br>
path to the same file?<br>
<br>
Alternatively, is there an external that can return the current<br>
working directory? On top of that, I could build an abstraction that<br>
would do almost what I need at least under some restrictions (e.g.<br>
when the file is in a descendant of the current folder)....<br>
<br>
Thanks<br>
m.<br>
<font color="#888888"></font></blockquote><div><br>I use [absolutepath] and [relativepath] from moonlib.<br><br>Andras<br>
</div></div>