accsum

accsum Commit Details

Date:2016-03-11 22:22:13 (2 years 7 months ago)
Author:Michael Baudin
Commit:34
Parents: 33
Message:Shortened messages printed at startup. (These verbose messages make the startup confusing when dozens of modules are loaded.)
Changes:
M/etc/accsum.start

File differences

etc/accsum.start
1
12
23
34
......
910
1011
1112
13
14
1215
1316
1417
......
2023
2124
2225
23
24
25
26
2627
27
28
29
30
2831
2932
3033
3134
3235
33
34
3536
36
37
38
39
3740
3841
3942
4043
4144
42
43
4445
45
46
47
48
4649
4750
4851
......
5053
5154
5255
53
54
5556
56
57
58
59
5760
5861
5962
6063
61
6264
65
66
67
68
6369
64
65
66
67
6870
6971
7072
// Copyright (C) 2016 - Michael Baudin
// Copyright (C) 2011 - DIGITEO - Michael Baudin
//
// This file must be used under the terms of the CeCILL.
function root_tlbx = loadaccsumlib ()
modulename = "Accsum"
verbose_at_startup=%f
mprintf("Start %s\n",modulename);
if ( isdef("accsumlib") ) then
etc_tlbx = getshortpathname(etc_tlbx);
root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );
//Load functions library
// =============================================================================
// Load functions library
if ( %t ) then
mprintf("\tLoad macros\n");
if (verbose_at_startup) then
mprintf("\tLoad macros\n");
end
pathmacros = pathconvert( root_tlbx ) + "macros" + filesep();
accsumlib = lib(pathmacros);
end
// load gateways
// =============================================================================
if ( %t ) then
mprintf("\tLoad gateways\n");
if (verbose_at_startup) then
mprintf("\tLoad gateways\n");
end
ilib_verbose(0);
exec( pathconvert(root_tlbx+"/sci_gateway/loader_gateway.sce",%f));
end
// Load and add help chapter
// =============================================================================
if or(getscilabmode() == ["NW";"STD"]) then
mprintf("\tLoad help\n");
if (verbose_at_startup) then
mprintf("\tLoad help\n");
end
path_addchapter = pathconvert(root_tlbx+"/jar");
if ( isdir(path_addchapter) <> [] ) then
add_help_chapter(modulename, path_addchapter, %F);
end
// add demos
// =============================================================================
if or(getscilabmode() == ["NW";"STD"]) then
mprintf("\tLoad demos\n");
if (verbose_at_startup) then
mprintf("\tLoad demos\n");
end
pathdemos = pathconvert(root_tlbx+"/demos/accsum.dem.gateway.sce",%f,%t);
add_demo(modulename,pathdemos);
end
// ====================================================================
// A Welcome message.
if (verbose_at_startup) then
mprintf("\tType ""help accsum_overview"" for quick start.\n");
mprintf("\tType ""demo_gui()"" and search for ""%s"" for Demonstrations.\n",modulename);
end
mprintf("\tType ""help accsum_overview"" for quick start.\n");
//mprintf("\tType ""demo_gui()"" and search for ""%s"" for Demonstrations.\n",modulename);
// =============================================================================
// Create variables at level #0
accsumlib = resume(accsumlib)

Archive Download the corresponding diff file

Revision: 34