Last change
on this file since 60 was
60,
checked in by pinsard, 18 years ago
|
upgrade of Documentation/idldoc according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/
|
-
Property svn:executable set to
*
|
File size:
682 bytes
|
Line | |
---|
1 | ; From Jim Pendelton, Oct. 2001 |
---|
2 | Function SourceRoot |
---|
3 | Help, Calls = Calls |
---|
4 | UpperRoutine = (StrTok(Calls[1], ' ', /Extract))[0] |
---|
5 | Skip = 0 |
---|
6 | Catch, ErrorNumber |
---|
7 | If (ErrorNumber ne 0) then Begin |
---|
8 | Catch, /Cancel |
---|
9 | ThisRoutine = Routine_Info(UpperRoutine, /Functions, /Source) |
---|
10 | Skip = 1 |
---|
11 | EndIf |
---|
12 | If (Skip eq 0) then Begin |
---|
13 | ThisRoutine = Routine_Info(UpperRoutine, /Source) |
---|
14 | EndIf |
---|
15 | Case StrUpCase(!version.os_family) of |
---|
16 | 'WINDOWS' : DirSep = '\' |
---|
17 | 'UNIX' : DirSep = '/' |
---|
18 | 'MACOS' : DirSep = ':' |
---|
19 | 'VMS' : DirSep = ']' |
---|
20 | Else : DirSep = '' |
---|
21 | EndCase |
---|
22 | Root = StrMid(ThisRoutine.Path, 0, StrPos(ThisRoutine.Path, DirSep, /Reverse_Search) + 1) |
---|
23 | Return, Root |
---|
24 | End |
---|
Note: See
TracBrowser
for help on using the repository browser.