[Scilab-users] Atoms fail and changing SCIHOME

amonmayr at laas.fr amonmayr at laas.fr
Fri Dec 4 11:49:21 CET 2015


Le 12/04/2015 10:45 AM, Antoine Monmayrant a écrit :
> Le 12/03/2015 07:24 PM, Samuel Gougeon a écrit :
>> Hello,
>>
>> Le 03/12/2015 17:10, amonmayr at laas.fr a écrit :
>>> Hi all,
>>>
>>> We've just discovered that on scilab 5.5.2, atoms is not working on 
>>> our Windows machines:
>>>
>>> atomsGUI()
>>> WARNING: mputl: Cannot open file \\servername\username\[..skipping 
>>> some boring stuff...]\scilab-5.5.2\.atoms\config.
>>>
>>> It might be a problem with our setup where the homedir of our users 
>>> are on network shares.
>>> Many Windows scripts are failing when accessing the files using the 
>>> network path "\\servername\username\..."
>>> The network shares "\\servername\username" are mapped locally to a 
>>> drive letter "Z:" and usually, changing the path from 
>>> "\\servername\username\..." to "Z:\\..." solves the problem of write 
>>> access.
>>>
>>> So here is my question how do I change SCIHOME (to replace 
>>> "\\servername\username\" by "Z:\")?
>>> I tried, predef, looking in scilab.start, ... but without success.
>> .
>> For Scilab on Windows, Scilab uses the environment variable (of the 
>> OS) APPDATA to build SCIHOME, and TMP to build TMPDIR.
>> The only way to change these Scilab variables is to run Scilab from a 
>> batch file in which the environment variables are priorly set to what 
>> you want for Scilab.
>>
>
> Do you have an example of such script?
> I daily do things like that under Linux, but I am more than rusty when 
> it comes to Windows batch!
> Anyway, I am not sure changing APPDATA will solve the problem, but 
> it's worth a try.
Answering my own question, here is a solution
1 Create a batch file myscilex.exe in the bin directory
2 Put this inside:
     @ECHO OFF
     set APPDATA=Z:\Windows\Application Data

     start Wscilex.exe
3 Now launch myscilex.exe
4 Now atomsGui() works !

Antoine
(Happy)




>
> Cheers,
>
> Antoine
>
>> We daily use such a configuration now for years, with Scilab 
>> installed on a shared place on our internal network, and it works.
>>
>> HTH
>> Samuel
>>
>
>


-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

  Antoine Monmayrant LAAS - CNRS
  7 avenue du Colonel Roche
  BP 54200
  31031 TOULOUSE Cedex 4
  FRANCE

  Tel:+33 5 61 33 64 59
  
  email : antoine.monmayrant at laas.fr
  permanent email : antoine.monmayrant at polytechnique.org

+++++++++++++++++++++++++++++++++++++++++++++++++++++++




More information about the users mailing list