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

Reinhold Venzl-Schubert r.venzl-schubert at t-online.de
Wed Mar 1 14:59:34 CST 2006


Hi Richard,

I am a layman in programming and MetaTalk is a great puzzle for me.  
Sometime I can't find the fitting piece. All tutorials, references  
and help are written in english, a foreign language. What I need is a  
manual or user guide in german or a thick dictionary and a mailing  
list like this.

;-) Reinhold


Am 25.02.2006 um 19:00 schrieb  Richard Gaskin:

> 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?



More information about the metacard mailing list