Re: How to determine if ENVI is loaded? [message #78152] |
Tue, 25 October 2011 10:06 |
Robin Wilson
Messages: 40 Registered: August 2010
|
Member |
|
|
On 25/10/2011 17:54, Vincent Sarago wrote:
> An other way is to test if the ENVI procedure are set (compiled)
>
> test = routine_info(ENVI_SELECT)
>
Even better - that's just what I was looking for.
Cheers,
Robin
|
|
|
|
Re: How to determine if ENVI is loaded? [message #78155 is a reply to message #78153] |
Tue, 25 October 2011 09:41  |
Robin Wilson
Messages: 40 Registered: August 2010
|
Member |
|
|
On 25/10/2011 17:37, Vincent Sarago wrote:
> There is maybe a "true" solution but
>
> I know the IDL prompt value (!PROMPT) is equal to 'IDL> ' when only IDL is loaded and 'ENVI>' when ENVI is loaded ...
>
> I know that not official at all :-)
>
Not official, but it works! I'll build in an ELSE clause in case they
change it (not that they're likely to, but you never know).
Cheers,
Robin
|
|
|
|