File: Modules-1.html

package info (click to toggle)
scigraphica 0.8.0-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,804 kB
  • ctags: 3,975
  • sloc: ansic: 43,009; sh: 6,796; python: 6,167; makefile: 567
file content (48 lines) | stat: -rw-r--r-- 1,515 bytes parent folder | download | duplicates (2)
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>Modules and Plug-ins in SciGraphica: Introduction to the SciGraphica plug-in system</TITLE>
 <LINK HREF="Modules-2.html" REL=next>

 <LINK HREF="Modules.html#toc1" REL=contents>
</HEAD>
<BODY>
<A HREF="Modules-2.html">Next</A>
Previous
<A HREF="Modules.html#toc1">Contents</A>
<HR>
<H2><A NAME="s1">1. Introduction to the SciGraphica plug-in system</A></H2>

<P>Like many other modern programs, SciGraphica can be extended
by third-party plug-ins. Theseplug-ins can currently be written both
in Python and C. The easiest way to wite a plug-in, is to write a
Python module, in C or Python. In that case the plug-in is loaded
by the Python module loader. 
<P>
<P>
<P>
<P>Modules can be imported from the SciGraphica terminal command
line, or by including the module name in the list of modules in the
Scripting-&gt;Configuration-&gt;Startup dialog. Make sure the module
can be found in the Python module search path, which can be determined
by doing the follwing in the SciGraphica terminal: 
<P>
<HR>
<PRE>
import sys
print sys
</PRE>
<HR>
<P>
<P>
<P>
<P>One of these paths is set by SciGraphica, which is <CODE>/usr/share/scigraphica/python</CODE>
if the package is installed under <CODE>/usr</CODE>. The rest of this document
will describe how to write plug-ins in Python and C.
<HR>
<A HREF="Modules-2.html">Next</A>
Previous
<A HREF="Modules.html#toc1">Contents</A>
</BODY>
</HTML>