[Scilab-users] the name of a script
    Jan Åge Langeland 
    j-lan at online.no
       
    Wed Mar 16 09:23:37 CET 2016
    
    
  
On 16.03.2016 07:35, fujimoto2005 wrote:
> Hi, all
> Is there any ways to get the name of script when I am executing it ?
> I want to write a code to get the name of the script containing that code.
> For example , suppose I execute a script named with 'abc.sce'  and I want to
> have a line which get the script name 'abc.sce' .
>
> Best regards
>
>
a=gethistory();
b=strsplit(a($),  [filesep();'''']);
disp(b($-1));
JÅ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20160316/1efcf648/attachment.htm>
    
    
More information about the users
mailing list