;+ ; NAME: ; addpath ; PURPOSE: (one line) ; add a path to !path if it isn't already there ; DESCRIPTION: ; ; CATEGORY: ; Util ; CALLING SEQUENCE: ; addpath, path ; INPUTS: ; path - the path to add ; OPTIONAL INPUT PARAMETERS: ; none ; KEYWORD INPUT PARAMETERS: ; none ; KEYWORD OUTPUT PARAMETERS: ; none ; OUTPUTS: ; none ; COMMON BLOCKS: ; None ; SIDE EFFECTS: ; RESTRICTIONS: ; None ; PROCEDURE: ; MODIFICATION HISTORY: ; 2010 Feb 18 LAY ;- pro addpath, path if strpos(!path,path) eq -1 then $ PREF_SET, 'IDL_PATH', cpath(path)+':'+!path, /COMMIT end