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

Home » Public Forums » archive » Re: Modules directory howto find or link IDL 2 it
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: Modules directory howto find or link IDL 2 it [message #23848 is a reply to message #23845] Fri, 23 February 2001 08:29 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
"Sean Heukels" <sean77=cuthere=@dds.nl> writes:

> I've written several modules, ones that work,
> and have proven themselves through time,
> how do I link them (from a subdir) in IDL???
>
> We have IDL running on Unix, multi user, all with our own homes.
> I want my version of IDL or in my environment to look for a PRO file
> in its current directory, then MYmodule directory and then the IDL main
> module directory.
> How can I accomplish this?
> Must I set a environment variable??

Quick answers. I assume you are running Unix, since that's what it
sounds like from your post:

* if you have an idl_setup script that runs in your login files, then
right after that, put the following statement:

setenv IDL_PATH $HOME/mymodule:$IDL_PATH

or the equivalent in your shell language

* if you are using a default "idl" script, then you won't be able to
set the path variable in your login ahead of time. You can still
use a start-up script. In your login file put something like this:

setenv IDL_STARTUP ~/.idl_startup.pro

and in .idl_startup.pro put this:

!PATH = '~/mymodule:' + !PATH

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Congrid problem
Next Topic: Re: Structures:

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

Current Time: Sat Oct 11 05:33:57 PDT 2025

Total time taken to generate the page: 1.20451 seconds