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

Home » Public Forums » archive » Re: Workspace Path Variable?
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: Workspace Path Variable? [message #72317] Mon, 30 August 2010 09:14
tegus is currently offline  tegus
Messages: 20
Registered: October 2008
Junior Member
On Aug 30, 11:52 am, Wox <s...@nomail.com> wrote:
> On Mon, 30 Aug 2010 06:57:04 -0700 (PDT), tegus
>
> <tegusbillhar...@gmail.com> wrote:
>> All,
>
>> Is there a system variable which contains the current workspace path
>> name? Nothing shows up when I run hel, /system_variables .....
>
>> Thanks,
>> Bill
>
> If you need to get it when running some procedure that sits in your
> workspace directory you could use David's ProgramRootDir
> print,ProgramRootDir(/oneup)

Wox,

Thanks!
I was just hoping there was a built-in method of retreiving the
workspace info.
What I have decided to do is parse the org.eclipse.ui.ide.prefs file
located in my C:\Documents and Settings\user\.idl\itt\idlworkbench-
config-idl70\.settings folder for RECENT_WORKSPACES which provides a
list of recently used workspaces and I pick the first (most recent --
i.e., currently in use) workspace.

Here's what my org.eclipse.ui.ide.prefs file looks like

#Mon Aug 30 11:49:17 EDT 2010
RECENT_WORKSPACES_PROTOCOL=2
MAX_RECENT_WORKSPACES=5
SHOW_WORKSPACE_SELECTION_DIALOG=false
eclipse.preferences.version=1
RECENT_WORKSPACES=C\:\\Documents and Settings\\user\\testWorkSpace,C\:\
\Documents and Settings\\user\\IDLWorkspace,C\:\\Documents and Settings
\\user\\Desktop\\Baseline,C\:\\Documents and Settings\\user\\Baseline,C
\:\\Documents and Settings\\user\\IDL Workspace 2

So in this case I end up with C\:\\Documents and Settings\\wclift01\
\testWorkSpace

Not pretty, but it works, although some of our machines have multiple
org.eclipse.ui.ide.prefs files so just be be sure, I'll need to check
the timestamp.
Re: Workspace Path Variable? [message #72318 is a reply to message #72317] Mon, 30 August 2010 09:01 Go to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Mon, 30 Aug 2010 08:36:47 -0700 (PDT), tegus wrote:

> On Aug 30, 11:13�am, Heinz Stege <public.215....@arcor.de> wrote:
>> On Mon, 30 Aug 2010 06:57:04 -0700 (PDT), tegus wrote:
>>> All,
>>
>>> Is there a system variable which contains the current workspace path
>>> name? Nothing shows up when I run hel, /system_variables .....
>>
>>> Thanks,
>>> Bill
>>
>> No. You can use
>> � �CD,CURRENT=variable
>> � �help,variable
>> to get the current path.
>>
>> Heinz
>
> The current working directory has nothing to do with the current
> workspace ~~

Sorry, my fault.

Heinz
Re: Workspace Path Variable? [message #72321 is a reply to message #72318] Mon, 30 August 2010 08:52 Go to previous message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Mon, 30 Aug 2010 06:57:04 -0700 (PDT), tegus
<tegusbillharris@gmail.com> wrote:

> All,
>
> Is there a system variable which contains the current workspace path
> name? Nothing shows up when I run hel, /system_variables .....
>
> Thanks,
> Bill

If you need to get it when running some procedure that sits in your
workspace directory you could use David's ProgramRootDir
print,ProgramRootDir(/oneup)
Re: Workspace Path Variable? [message #72326 is a reply to message #72321] Mon, 30 August 2010 08:36 Go to previous message
tegus is currently offline  tegus
Messages: 20
Registered: October 2008
Junior Member
On Aug 30, 11:13 am, Heinz Stege <public.215....@arcor.de> wrote:
> On Mon, 30 Aug 2010 06:57:04 -0700 (PDT), tegus wrote:
>> All,
>
>> Is there a system variable which contains the current workspace path
>> name? Nothing shows up when I run hel, /system_variables .....
>
>> Thanks,
>> Bill
>
> No. You can use
>    CD,CURRENT=variable
>    help,variable
> to get the current path.
>
> Heinz

The current working directory has nothing to do with the current
workspace ~~
Re: Workspace Path Variable? [message #72327 is a reply to message #72326] Mon, 30 August 2010 08:13 Go to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Mon, 30 Aug 2010 06:57:04 -0700 (PDT), tegus wrote:

> All,
>
> Is there a system variable which contains the current workspace path
> name? Nothing shows up when I run hel, /system_variables .....
>
> Thanks,
> Bill

No. You can use
CD,CURRENT=variable
help,variable
to get the current path.

Heinz
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 'loop limit expression too large for loop variable type' error
Next Topic: IDL/DLM segmentation fault on reset

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

Current Time: Wed Oct 08 15:52:54 PDT 2025

Total time taken to generate the page: 0.00576 seconds