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->Configuration->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>
|