How to generate the relative path in an import-paint-script?

Richard Gaskin ambassador at fourthworld.com
Fri Feb 24 18:06:46 CST 2006


Reinhold Venzl-Schubert wrote:
> Hi!
> 
> When I import an image I select "Link Only" and "Set Directory" to 
> generate the relative path of it and to reduce memory usage.
> 
> Now I wrote a button-script to import a picture:
> 
>  > import paint from file ImportBild <
> 
> How can I generate the relative path in my script?

This raises a good question for all of us. Absolute paths are absolutely 
abysmal for real-world work.

Should we consider an option in the IDE for relative paths?

The issue here is that currently paths are relative to the current 
directory, but the current directly is subject to change from any script 
so it's not universally reliable.

I have a request for true absolute paths in BZ:
<http://support.runrev.com/bugdatabase/show_bug.cgi?id=2490>

In the meantime, should we consider some form of assistance for this in 
the IDE?  If so, how should we approach it?  Or are we just asking for 
trouble to attempt this before having it done right in the engine?

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________________
  Ambassador at FourthWorld.com       http://www.FourthWorld.com


More information about the metacard mailing list