[SIP-devel] bug&fix to help system of scilab 2.7
Advanced image processing toolbox for Scilab on Unix/Linux/Mac OS
Status: Beta
Brought to you by:
ricardofabbri
|
From: Ricardo F. <rf...@if...> - 2003-02-22 04:20:44
|
Hello,
the help function of scilab 2.7 has a very small bug on windows,
which urgent and extremely easy to fix. This is causing
toolboxes with old ".cat" text manual pages to mess up the whole
help system, so many users of SIP (image toolbox) and other
toolboxes are switching back to scilab 2.6.
The file help.sci (in SCI/macros/util) defines a function
change_old_man, which creates a temporary directory to store the
html files generated from the old help format. The directory name
has a trailing "\" which causes the "mkdir" command to fail under
Windows. Note that for Unixes this is harmless!!
The fix is simple:
220 txt=mgetl(%helps(k,1)+"/whatis")
221 whatispath=TMPDIR+"/man"+string(k);
222 p=pathconvert(whatispath);
223 if fileinfo(p)==[] then unix_s("mkdir "+p),end
224
225 name=[],fil=[],def=[]
Just change line 222 into
222 p=pathconvert(whatispath,%f);
Please let me know when this easy fix gets incorporated into scilab
2.7 so windows users can install the toolboxes (including SIP)
without spoiling the help system.
thanks,
Ricardo.
--
Ricardo Fabbri, Cybernetic Vision Research Group, USP, Brazil.
http://cyvision.if.sc.usp.br/~rfabbri
** www.scilab.org - Scilab 2.7 is out there! **
|