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

Home » Public Forums » archive » Re: can't change PATH preference under Windows?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: can't change PATH preference under Windows? [message #49496] Tue, 01 August 2006 19:22 Go to next message
Jeff N. is currently offline  Jeff N.
Messages: 120
Registered: April 2005
Senior Member
Thanks Benjamin,

I knew I could change !path, and I suppose i'll probably resort to
that, but I'm actually concerned about why this behavior is happening.
I'm working on a startup file that sets the path preference with
pref_set based on a set of conditions, and I'd like 3 computers to have
the same startup file...it's worked flawlessly on the 1st two, and now
on this third machine i'm getting this weird behavior.

Thanks for your quick reply though!
Jeff


Benjamin Hornberger wrote:
> Jeff N. wrote:
>> Hi folks,
>>
>> I'm using IDL 6.2 with WinXP. I've somehow managed to make it so that
>> IDL won't let me change my path preferences using the preferences
>> dialog box - my path folders are desensitized. According to the help
>> file, this desensitization occurs when "higher priority" items set
>> preferences, and these higher priority items are command line arguments
>> or environment variables (so if, for ex., an environment variable sets
>> the preference, the preference can't be changed during the session).
>> The problem is that I'm currently using neither of these....but I have
>> used command line arguments before. So my guess is that IDL still
>> somehow thinks a command line argument is being used when it isn't.
>> I've tried a simple computer restart as well as starting IDL with
>> different means (a desktop shortcut, clicking on the executable itself,
>> and using the windows command line). Nothing seemed to work. Does
>> anyone have any suggestions as to how I could get myself out of this? I
>> *really* need to customize my path very soon! :)
>>
>> Jeff
>>
>
> I don't really know how you can get back that sensitivity, but as a
> workaround you can change the path by directly editing the !PATH system
> variable, e.g. in your startup file. You can use the EXPAND_PATH
> function if necessary.
>
> !PATH = expand_path('+/my/additional/path')+':'+!PATH
>
> Good luck,
> Benjamin
Re: can't change PATH preference under Windows? [message #49500 is a reply to message #49496] Tue, 01 August 2006 17:30 Go to previous messageGo to next message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Jeff N. wrote:
> Hi folks,
>
> I'm using IDL 6.2 with WinXP. I've somehow managed to make it so that
> IDL won't let me change my path preferences using the preferences
> dialog box - my path folders are desensitized. According to the help
> file, this desensitization occurs when "higher priority" items set
> preferences, and these higher priority items are command line arguments
> or environment variables (so if, for ex., an environment variable sets
> the preference, the preference can't be changed during the session).
> The problem is that I'm currently using neither of these....but I have
> used command line arguments before. So my guess is that IDL still
> somehow thinks a command line argument is being used when it isn't.
> I've tried a simple computer restart as well as starting IDL with
> different means (a desktop shortcut, clicking on the executable itself,
> and using the windows command line). Nothing seemed to work. Does
> anyone have any suggestions as to how I could get myself out of this? I
> *really* need to customize my path very soon! :)
>
> Jeff
>

I don't really know how you can get back that sensitivity, but as a
workaround you can change the path by directly editing the !PATH system
variable, e.g. in your startup file. You can use the EXPAND_PATH
function if necessary.

!PATH = expand_path('+/my/additional/path')+':'+!PATH

Good luck,
Benjamin
Re: can't change PATH preference under Windows? [message #49590 is a reply to message #49496] Wed, 02 August 2006 08:10 Go to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
On Tue, 01 Aug 2006 19:22:21 -0700, Jeff N. wrote:

> Thanks Benjamin,
>
> I knew I could change !path, and I suppose i'll probably resort to
> that, but I'm actually concerned about why this behavior is happening.
> I'm working on a startup file that sets the path preference with
> pref_set based on a set of conditions, and I'd like 3 computers to have
> the same startup file...it's worked flawlessly on the 1st two, and now
> on this third machine i'm getting this weird behavior.
>
> Thanks for your quick reply though!
> Jeff

On the third machine, you probably have the IDL_PATH environment variable
set.

Right-click My Computer
Properties
Advanced tab
Environment Variables

Look for IDL_PATH.

When I set IDL_PATH in my environment, I get exactly the behavior you
describe.

Karl
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: readcol problems
Next Topic: Re: Printing a collection of widget items

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

Current Time: Wed Oct 08 15:49:30 PDT 2025

Total time taken to generate the page: 0.00647 seconds