comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Device independent plotting
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Device independent plotting [message #70790] Wed, 05 May 2010 08:02 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On May 5, 11:47 am, David Fanning <n...@dfanning.com> wrote:
> Karen writes:
>> To make my code truly platform independent I would like to check what
>> platform I am running on at the start so then I can load the right
>> paths to my files, rather than having to change them by hand every
>> time I swap machine. Is there a command that will tell me whether I am
>> on Mac or PC from within IDL? Sure there's an easy way but I can't
>> find it on the web.
>
> You are looking for !Version.OS_Family.

path_sep() may also be useful, to make sure the right kind of slash is
used. Nicely, file_dirname() and file_basename() work correctly on any
platform when given forward slashes, and return results with the right
kind of slash.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Creating a new image from an image input in IDL
Next Topic: Fourier Fitting Data in PV-Wave

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:41:53 PDT 2025

Total time taken to generate the page: 0.00477 seconds