Files
gnatstudio/python/src/python_module.ads
Emmanuel Briot b9831c755e Merge with gnatlib: all the python-specific code is now in gnatlib. The
packages in this module only contain exported shell commands specific
 to python (__str__, __repr__,...)
As a result, we no longer need two source directories here, since the
 code will work whether or not python could be loaded. Moved back the
 source directory from python/ and nopython/ to src/, for compatibility
 with all other modules


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@108075 936e1b1b-40f2-da11-902a-00137254ae57
2007-06-13 07:58:36 +00:00

45 lines
2.1 KiB
Ada
Executable File

-----------------------------------------------------------------------
-- G P S --
-- --
-- Copyright (C) 2003-2007, AdaCore --
-- --
-- GPS is free software; you can redistribute it and/or modify it --
-- under the terms of the GNU General Public License as published by --
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. --
-- --
-- This program is distributed in the hope that it will be useful, --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --
-- General Public License for more details. You should have received --
-- a copy of the GNU General Public License along with this program; --
-- if not, write to the Free Software Foundation, Inc., 59 Temple --
-- Place - Suite 330, Boston, MA 02111-1307, USA. --
-----------------------------------------------------------------------
with GPS.Kernel;
package Python_Module is
procedure Register_Module
(Kernel : access GPS.Kernel.Kernel_Handle_Record'Class);
-- Register the module into the list
procedure Load_System_Python_Startup_Files
(Kernel : access GPS.Kernel.Kernel_Handle_Record'Class);
-- Load all the GPS's systems Python plug-ins.
-- This procedure should be called only after all standard modules
-- have been registered, so that if the user's startup files depend
-- on standard GPS functions these are already loaded.
-- This procedure does nothing if the python module hasn't been
-- registered.
--
-- ??? Ideally, we should have a hook run after all modules have been
-- registered
procedure Load_User_Python_Startup_Files
(Kernel : access GPS.Kernel.Kernel_Handle_Record'Class);
-- As above but load the user's Python plug-ins
end Python_Module;