X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 27 May 2013 07:03 AM by  anon
Path to extension folder
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
27 May 2013 07:03 AM
    I have got to question. 1. Do I need to do .RESETSESSION before I creation of sav file? I had read docs, but do not understand when I need to do it. Could you explain the situation when I need it. 2. How I can get in variable path to ENVI Extension folder? I know that it's can be setted ai ENVI Settings, but how I can get path to it with IDL?

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    28 May 2013 04:32 PM
    I am not sure I completely understand your questions - - typically, when creating a .sav file that is a user function for ENVI, we suggest you start a 'fresh' IDL session and then perform the steps described in the ENVI Classic help under Sample Code and Instructions > Working with User Functions > Adapting User Functions for ENVI Classic > Creating a Save File. I am not clear on what you want to do with the path to the ENVI extensions folder. You can add in paths from IDL from the IDL preferences under Preferences->IDL->Paths.

    Deleted User



    New Member


    Posts:
    New Member


    --
    29 May 2013 12:38 AM
    What will happen if I will not do reset session before creation sav file? Ok. I know about preferences, but how I can get this path from IDL code? Example: I need to cal from one sav file another sav file with absolute path? And this path is path to extension folder. something like: $dir = %extensionfolder% + 'foo.sav'

    Deleted User



    New Member


    Posts:
    New Member


    --
    31 May 2013 05:25 AM
    UP

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    03 Jun 2013 09:24 AM
    The ENVI Help discusses best practices and RESET_SESSION under Programming > Toolbox Extensions. I don't think there is a specific variable holding the ENVI extensions folder. The path is listed with the IDL !PATH variable.
    You are not authorized to post a reply.