FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Scilab-Python/etc/Python.start at master · sengupta/Scilab-Python · GitHub
sengupta
/
Scilab-Python
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
3
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Scilab-Python
/
etc
/
Python.start
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
51 lines (42 loc) · 1.63 KB
Breadcrumbs
Scilab-Python
/
etc
/
Python.start
Copy path
File metadata and controls
executable file
·
51 lines (42 loc) · 1.63 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright (C) 2008 - INRIA
// Copyright (C) 2009 - DIGITEO
// This file is released into the public domain
mprintf("Starting the Python Toolbox\n");
if isdef("Pythonlib") then
warning("The Python Toolbox is already loaded");
return;
end
etc_tlbx = get_absolute_file_path("Python.start");
etc_tlbx = getshortpathname(etc_tlbx);
root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );
//Load functions library
// =============================================================================
mprintf("\tLoad macros\n");
pathmacros = pathconvert( root_tlbx ) + "macros" + filesep();
Pythonlib = lib(pathmacros);
clear pathmacros;
// Load and add help chapter
// =============================================================================
// if or(getscilabmode() == ["NW";"STD"]) then
// mprintf("\tLoad help\n");
// path_addchapter = pathconvert(root_tlbx+"/jar");
// if ( isdir(path_addchapter) <> [] ) then
// add_help_chapter("Toolbox skeleton", path_addchapter, %F);
// clear add_help_chapter;
// end
// clear path_addchapter;
// end
// Load demos
// =============================================================================
// if or(getscilabmode() == ["NW";"STD"]) then
// mprintf("\tLoad demos\n");
// pathdemos = pathconvert(root_tlbx+"/demos/toolbox_skeleton.dem.gateway.sce",%F,%T);
// add_demo("Toolbox skeleton",pathdemos);
// clear pathdemos add_demo;
// end
pathsrc = pathconvert( root_tlbx ) + "src" + filesep();
function_list = ["py_start"; "py_end"; "py_evaluate_expression"; "py_import"];
linked_lib = link(pathsrc + "libscipython.so", function_list, 'c');
call("py_start");
clear root_tlbx;
clear etc_tlbx;
Back
|
FazBrowse Home
|
New Git URL