Michael, I grabbed Sophie 1..0.3 (linux) and do not see FileLocations. Is there another version that I need to get? There is a Sophie-FFI-Win32 category, and probably other Win32 specifics.
I need to see what you have in mind, but if it is in the spirit of other "look in the usual places" methods I have seen, it would not be enough IMHO, at least not to get it right. Windows can be installed in non-default locations, and I (and perhaps others) confound things by creating "missing" directories to make things work. As an example, long ago, I had code that expected c:\windows\desktop to exist - it was as good a place as any to dump the result; when win2k came along, I simply created the directory and got back to work. I have never "fixed" that because it is not really a problem. Many changes in Windows require more attention. If we are to claim to support Windows, the system directory is a minimal thing to get right. Bill Wilhelm K. Schwab, Ph.D. University of Florida Department of Anesthesiology PO Box 100254 Gainesville, FL 32610-0254 Email: [EMAIL PROTECTED] Tel: (352) 273-6785 FAX: (352) 392-7029 >>> [EMAIL PROTECTED] 10/01/08 12:39 AM >>> Bill Schwab wrote: > Does Pharo already expose the needed information? All I found was 'NT' The cleanest way do to it is to use the FileLocations package that we use in Sophie. It makes system calls to find out all the interesting locations. Tweak uses a class called CPlatform and subclasses to host calls that return platform specific information. In one image I worked on I generalized it, called it simply Platform (I think). Comes in very handy :-) Michael _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
