<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Thank you Éric.<br>Your answer helped me a lot. It is working now.<br><br>Actually, that is the way I was trying to do. <br>After I got your reply I went to try the same thing again but it was still to no avail.<br>Then after some thought I realised that it was because I am used to running my scripts using the <b>CTRL+L</b> shortcut in Scilab Text Editor instead of <b>CTRL+E</b>.<br>If I start the script with <b>CTRL+L</b> the function <i>get_absolute_file_path()</i> does not work. Now I am running the script with the <b>CTRL+E</b> shortcut and everything works alright. Thank you for your answer and help.<br><br>Daniel<br><br><hr id="stopSpelling">Date: Mon, 10 May 2010 21:42:35 +0200<br>From: grocer.toolbox@gmail.com<br>To: users@lists.scilab.org<br>Subject: Re: [scilab-Users] script path from within script<br><br>Hello<br><br>get_absolute_file_path("<i>test_script.sce") </i><br><br>is what I think you are searching for.<br><br>Éric.<br><br><br><div class="ecxgmail_quote">2010/5/10 诚 甄 <span dir="ltr"><<a href="mailto:un_chico_muy_bueno@yahoo.com.br">un_chico_muy_bueno@yahoo.com.br</a>></span><br>
<blockquote class="ecxgmail_quote" style="padding-left: 1ex;">
<div>
Hello fellow Scilab users,<br><br>I have written a .sce script and would like to get the path to this script from within the script.<br><br>For example, the script is called <i>"test_script.sce"</i> and is saved in <i>"c:\users\adm\documents\scilab_scripts"</i><br>
<br>I would like to use a function to find this path from within the script itself. Does anyone know how this can be accomplished and point me to the right direction?<br><br>I checked the function get_absolute_file_path() in the Scilab manual, but although it is written there that this is possible, I could not figure out how to do it.<br>
<br>Any help will be greatly appreciated.<br><br>Thanks in advance,<br><br>Daniel<br> <br><hr>Hotmail: Free, trusted and rich email service. <a href="https://signup.live.com/signup.aspx?id=60969">Get it now.</a></div>
</blockquote></div><br> <br /><hr />Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Sign up now.</a></body>
</html>