Re: IDLWAVE environment variables [message #40468] |
Tue, 10 August 2004 13:44 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Justin writes:
> I'm embarrased to admit that I blamed emacs/IDLWAVE instead of myself.
Oh, well, hummph. Pretty much standard operating
procedure around here. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: IDLWAVE environment variables [message #40469 is a reply to message #40468] |
Tue, 10 August 2004 13:40  |
Justin[3]
Messages: 8 Registered: November 2003
|
Junior Member |
|
|
JD Smith <jdsmith@as.arizona.edu> wrote in
news:pan.2004.08.10.18.53.46.948826@as.arizona.edu:
> or just make sure your the emacs session in which IDL is running is
> launched from within a shell which correctly sets the environment
> (emacs then inherits the environment of the shell).
Sorry for asking such a foolish question! As it turns out I was using a
script to set things up which unset the env var in question. I'm embarrased
to admit that I blamed emacs/IDLWAVE instead of myself. Thanks for the
speedy reply JD.
Justin
|
|
|
Re: IDLWAVE environment variables [message #40474 is a reply to message #40469] |
Tue, 10 August 2004 11:53  |
JD Smith
Messages: 850 Registered: December 1999
|
Senior Member |
|
|
On Tue, 10 Aug 2004 18:28:39 +0000, Justin wrote:
> Hi,
>
> Some of my routines depend on reading environment variables, which are set
> in startup scripts (i.e. .cshrc etc under Unix). This works fine when IDL
> is started from the command line but under an IDLWAVE shell the start up
> scripts don't get called.
>
> So, is there anyway to get the IDLWAVE to run a given script before
> starting IDL?
Couple of options: define your environment variables in an emacs
startup like this:
(setenv "IDL_STARTUP" (concat CUBISM_REPOS "/idl_start"))
or just make sure your the emacs session in which IDL is running is
launched from within a shell which correctly sets the environment
(emacs then inherits the environment of the shell).
JD
|
|
|