[scilab-Users] How to get a script's directory

ZeWaren / Erwan Martin main at zewaren.net
Sun Jun 21 12:57:03 CEST 2009


This is what I was looking for.

Thank you.

This function should be added to the "See Also" section of the command 
"pwd". That way I would have found it on my own without having to bother 
you on this list.

Calixte Denizet wrote:
> Hi,
>
>   
>> How can I get the location of the script in a variable, so that I can do 
>> something like this?:
>>     cpath=get_script_path();
>>     graph=load_graph(cpath+'some_graph.graph');
>>     
>
> Maybe cpath=get_absolute_file_path('myscript.sci') could be useful.
>
> Calixte
>
>   
-- 
Erwan MARTIN / ZeWaren
----------------------------------------------------
IRL:  ARPEJ Lgt 453G, 1360 rte de Ste Anne, 
      29280 PLOUZANE, FRANCE
tel:  +33(0)9.51.66.58.34  cell: +33(0)6.32.01.15.01
80:   http://zewaren.net       25:  public at fzwte.net
5222: zewaren at rezid.org        1863:  main at fzwte.net
----------------------------------------------------





More information about the users mailing list