Commit Graph

265 Commits

Author SHA1 Message Date
Pascal Obry
44ce762395 (Load_Dir): Move to top level as it is now shared.
(Load_Python_Startup_Files): Split in 2 versions (system, user).
(Load_System_Python_Startup_Files): Load system plug-ins.
(Load_User_Python_Startup_Files): Load user's plug-ins.
--
This change the library load order:
 1. load system wide XML plug-ins
 2. load system wide Python plug-ins
 3. load user's XML plug-ins
 4. load user's Python plug-ins
This ensure that user's plug-ins have full access to the GPS plug-ins.
Work for FB26-004.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@100109 936e1b1b-40f2-da11-902a-00137254ae57
2006-11-27 20:33:22 +00:00
Pascal Obry
29ec79e704 Fix wrong casing introduced in previous check-in.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@99977 936e1b1b-40f2-da11-902a-00137254ae57
2006-11-22 15:11:46 +00:00
Pascal Obry
6def3c2a96 Minor reformatting.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@99974 936e1b1b-40f2-da11-902a-00137254ae57
2006-11-22 14:53:37 +00:00
Arnaud Charlet
8c3d497346 Remove Basic_Types.String_Access.
Favor GNAT.Strings.String_Access over Basic_Types/OS_Lib.
Part of F822-002.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@99921 936e1b1b-40f2-da11-902a-00137254ae57
2006-11-16 17:19:21 +00:00
Emmanuel Briot
e5db998645 Enhance previous checkin, add assert statement so that we do not get a
compiler warning


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98589 936e1b1b-40f2-da11-902a-00137254ae57
2006-08-08 08:11:19 +00:00
Arnaud Charlet
d4c6633e0b Remove unused pragma Warnings Off.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98575 936e1b1b-40f2-da11-902a-00137254ae57
2006-08-07 14:54:52 +00:00
Emmanuel Briot
b136f19afc (Load_Python_Startup_Files): Make sure we first load the files in
GPS_CUSTOM_PATH before the files in ~/.gps/plug-ins, since this is as
 documented


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98546 936e1b1b-40f2-da11-902a-00137254ae57
2006-08-04 15:17:07 +00:00
Florian Villoing
a5047685ed (Register_Module): Slighly reorganize the code so that GPS is able to handle
error messages before importing the gtk module. This avoids a storage error
 with pygtk 1.8.6 compiled locally.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98386 936e1b1b-40f2-da11-902a-00137254ae57
2006-07-28 15:44:19 +00:00
Emmanuel Briot
97d209c9f7 (Load_Python_Startup_Files): Execute initialization commands through the
task manager, so that the user can also use the <external> tag if he wants.
 Part of F719-012


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98351 936e1b1b-40f2-da11-902a-00137254ae57
2006-07-27 15:22:03 +00:00
Emmanuel Briot
cf5fb21e1e Avoid hard-coding the name of startup directories, they are now shared in
the kernel.
(Load_Python_Startup_Files): Load files based on the contents of startup.xml,
 as per F719-012
 No longer load $prefix/share/gps/python/autoexec.py and ~/.gps/python_startup,
 as per the same TN
(Python_Module.Current_File): now a Virtual_File, slightly more convenient
 to use


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98220 936e1b1b-40f2-da11-902a-00137254ae57
2006-07-25 15:19:54 +00:00
Emmanuel Briot
36289ca99f ("GPS.GUI.pywidget"): Avoid Storage_Error when the widget has been destroyed
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98156 936e1b1b-40f2-da11-902a-00137254ae57
2006-07-24 09:20:07 +00:00
Arnaud Charlet
660197c179 Fix formatting.
Separate implementation of pygtk support, to make it easier to read and
 also to detect when a stub is missing.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98044 936e1b1b-40f2-da11-902a-00137254ae57
2006-07-19 09:45:56 +00:00
Emmanuel Briot
dac424abe6 (Register_Module): PyGTK requires sys.argv for its error messages, but this
is not available by default when in non-interactive mode. Workaround this


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@97991 936e1b1b-40f2-da11-902a-00137254ae57
2006-07-17 15:46:10 +00:00
Emmanuel Briot
0d4a4b4ec8 Add support for PyGTK if it was detected by configure. Part of F130-004
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@97986 936e1b1b-40f2-da11-902a-00137254ae57
2006-07-17 14:25:05 +00:00
Emmanuel Briot
05323bdffd (GPS.exec_in_console): This function should be activated even if pygtk
was not found (found by code reading)
(Register_Module): Try and detect PyGTK only if it was also activated at
 compile-time, since we need special support for it. Part of F130-004


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@97985 936e1b1b-40f2-da11-902a-00137254ae57
2006-07-17 14:24:38 +00:00
Emmanuel Briot
e120ec7b8a Activate the interface for PyGTK only if the later was found and enabled by
the user at compile-time. Part of F130-004


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@97984 936e1b1b-40f2-da11-902a-00137254ae57
2006-07-17 14:22:48 +00:00
Emmanuel Briot
1e29a309af (Load_Dir): Store the full path name for the script name, so that actions
defined in this script will be reported with the full name


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@97382 936e1b1b-40f2-da11-902a-00137254ae57
2006-06-15 12:11:16 +00:00
Emmanuel Briot
01e1421779 (Current_Script): New subprogram, part of DB18-004
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@97327 936e1b1b-40f2-da11-902a-00137254ae57
2006-06-14 12:52:43 +00:00
Pascal Obry
5900367065 (Initialize): Kill warning on Old_Handler (useless assignment).
Related to F518-012.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@96877 936e1b1b-40f2-da11-902a-00137254ae57
2006-05-21 08:03:05 +00:00
Arnaud Charlet
56ceee8fdf Revert previous change for now, which is not compatible with python 2.4
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@96751 936e1b1b-40f2-da11-902a-00137254ae57
2006-05-05 15:25:41 +00:00
Arnaud Charlet
5566512293 Fix warning on 64 bits machines.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@96750 936e1b1b-40f2-da11-902a-00137254ae57
2006-05-05 14:53:55 +00:00
Arnaud Charlet
d3fd9b595d Minor code clean up to follow more closely C code. and avoid potential
subtle incompatibilities with C.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@96738 936e1b1b-40f2-da11-902a-00137254ae57
2006-05-05 14:08:33 +00:00
Arnaud Charlet
92d8395f0f Minor reformatting.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@96737 936e1b1b-40f2-da11-902a-00137254ae57
2006-05-05 14:08:06 +00:00
Arnaud Charlet
e9706777c6 Minor reformatting.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@96735 936e1b1b-40f2-da11-902a-00137254ae57
2006-05-05 12:28:15 +00:00
Arnaud Charlet
ae7eca42ec Minor reformatting.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@96734 936e1b1b-40f2-da11-902a-00137254ae57
2006-05-05 12:22:41 +00:00