<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Le 02/03/2020 à 10:17, Clément David a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:DB6PR0901MB1608E95729CEFB6448AC4FBDB0E70@DB6PR0901MB1608.eurprd09.prod.outlook.com">
      <pre class="moz-quote-pre" wrap="">Hello Pierre, Samuel,

First, did you opened a bug on that issue?

Second, to me, the bug is located on the script2var() function which resolves the context and output a struct of `variable=value` that are defined for the diagram (and its parents). For example, when I explicitly define A=100 in the context, the A variable is found and resolved as 100 in the diagram. However, defining A=50 inside the A.ctx file and using the schema A610.zcos, where the A.ctx file is passed to exec(), failed.</pre>
    </blockquote>
    <p><br>
    </p>
    <p>Thanks Clément for the indication and <a moz-do-not-send="true"
        href="http://bugzilla.scilab.org/show_bug.cgi?id=16357">the
        report</a>.</p>
    <p>Pierre, <br>
      A solution is available => <a moz-do-not-send="true"
href="https://codereview.scilab.org/cat/21429%2C2%2Cscilab/modules/scicos/macros/scicos_scicos/script2var.sci">there</a>.<br>
      How to install it:<br>
    </p>
    <ul>
      <li>Download and unzip the file. Rename it script2var.sci<br>
        <br>
      </li>
      <li>Put script2var.sci in its SCI/scicos/macros/scicos_scicos
        directory<br>
        <br>
      </li>
      <li>Run the following Scilab code in the console, <i>with some
          full read/write rights</i>:<br>
        cd SCI/scicos/macros/scicos_scicos<br>
        predef clear<br>
        genlib scicos_scicoslib<br>
        clear script2var</li>
    </ul>
    <p>Then things should work for your session and any following ones.<br>
      If you get some error when running genlib(), it is most probably
      because you don't have enough rights to overwrite the library with
      its update.</p>
    <p>BR<br>
      Samuel<br>
      <br>
    </p>
  </body>
</html>