<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#330000">
On 12/10/2011 20:09, Ricardo Fabbri wrote:
<blockquote
cite="mid:CACjTMEx2Wrths-SFGFjpAMgTkwJHk1aspjqj2ROKbDuyyKEzAQ@mail.gmail.com"
type="cite">
<pre wrap="">Hello, all,
- Is there anything like a search PATH setting? For instance, I would
like to execute myscript.sce, but without specifying its full path. I
would also like to load a function automatically if it is in the path,
more or less matlab style.
</pre>
</blockquote>
<br>
hi ridacrdo<br>
<br>
did you check the following scilab functions?<br>
cd : changes current path<br>
getd : loads functions quite automatically<br>
<br>
and also:<br>
get_absolute_file_path: get the file pah of a current opened file<br>
<br>
<br>
myself, i frequently start my sce files with:<br>
<br>
modeldir = get_absolute_file_path("myfile.sce")<br>
getd(modeldir) //or getd(modeldir+filesep()+"lib") when i have a
lot of functions, i put them in a subfolder named "lib"<br>
cd(modeldir)<br>
<br>
<br>
hope this helps<br>
<br>
<br>
<div class="moz-signature">-- <br>
Adrien Vogt-Schilb (Cired) <br>
Tel: (+33) 1 43 94 <b>73 77</b></div>
</body>
</html>