[squeak-dev] Accessing external resources in a cross-platform way

Hernán Morales Durand hernan.morales at gmail.com
Fri Jan 28 12:51:22 UTC 2011


Let's say you want to resolve paths in a cross platform way

Binaries @ 'MyExec'
Libraries @ 'MyLib'
SystemLibraries @ 'SystemLib'
etc.

then Binaries is

In Windows: #( 'C:\Program Files\' 'C:\Archivos de Programa\' ...) "
and all standard locations including translations "
In UNIX: #('/usr/bin/' '/usr/local/bin' ....) " and all standard locations "
etc

Now you may say it is necessary to scan all directories to find
MyExec, yes but you may then save that location

myBinaryLocation := Binaries @ 'MyExec'.

so you scan for it just once.

What do you think? it is already implemented anywhere?
If not what package do you think is more suitable or prepared for
implementing it?

Cheers,

-- 
Hernán Morales
Information Technology Manager,
Institute of Veterinary Genetics.
National Scientific and Technical Research Council (CONICET).
La Plata (1900), Buenos Aires, Argentina.
Telephone: +54 (0221) 421-1799.
Internal: 422
Fax: 425-7980 or 421-1799.



More information about the Squeak-dev mailing list