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

Skip the navigation links
Last modified: 26 October 2007
Hardcopy (PDF): A4 | Letter

Why can't CIAO find my S-Lang scripts?

sherpa> () = evalfile("lc_clean.sl")
Error: cannot find or unable to open file as requested : lc_clean.sl

The directories CIAO searches for S-Lang scripts are determined by three environment variables, in the following order:

$PWD is simply the current working directory, while the other two are colon-separated lists of directories that are initialized by ciao.*sh. In order for a CIAO application (e.g. ChIPS or Sherpa) to find a S-Lang script, it must be located in a directory listed in one of these variables. (The exception to this rule is when the argument to evalfile contains an absolute path.)

Note that, by default, the above search path does not apply in slsh scripts. To change the search path used in an slsh script, use the function set_slang_load_path.



Hardcopy (PDF): A4 | Letter
Last modified: 26 October 2007


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.