About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/set_slang_load_path.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 set_slang_load_path Context: slangrtl

Synopsis

Set the value of the interpreter's load-path

Syntax

set_slang_load_path (String_Type path)

Description

This function may be used to set the value of the delimiter-separated search path used by the evalfile and autoload functions for locating files.

Example

    public define prepend_to_slang_load_path (p)
    {
       variable s = stat_file (p);
       if (s == NULL) return;
       if (0 == stat_is ("dir", s.st_mode))
         return;

       variable d = path_get_delimiter ();
       set_slang_load_path (strcat (p, d, get_slang_load_path ()));
    }

Some applications may not support the built-in load-path searching facility provided by the underlying library.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.