* src/PluginMgr.py: Minor fixes.

svn: r3890
This commit is contained in:
Alex Roitman 2005-01-09 03:28:28 +00:00
parent 4440a8f4aa
commit 36a9efd85a
2 changed files with 5 additions and 4 deletions

View File

@ -29,6 +29,8 @@
* src/data/gramps.schemas: Correct the default and the * src/data/gramps.schemas: Correct the default and the
description of the toolbar key. description of the toolbar key.
* src/PluginMgr.py: Minor fixes.
2005-01-07 Don Allingham <dallingham@users.sourceforge.net> 2005-01-07 Don Allingham <dallingham@users.sourceforge.net>
* src/gramps.glade: removal of more OptionMenus in favor * src/gramps.glade: removal of more OptionMenus in favor
of ComboBoxes of ComboBoxes

View File

@ -1,7 +1,7 @@
# #
# Gramps - a GTK+/GNOME based genealogy program # Gramps - a GTK+/GNOME based genealogy program
# #
# Copyright (C) 2000-2004 Donald N. Allingham # Copyright (C) 2000-2005 Donald N. Allingham
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -35,7 +35,6 @@ importers, exporters, and document generators.
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import os import os
import sys import sys
import string
import re import re
from gettext import gettext as _ from gettext import gettext as _
@ -99,7 +98,7 @@ def load_plugins(direct):
# if the directory does not exist, do nothing # if the directory does not exist, do nothing
if not os.path.isdir(direct): if not os.path.isdir(direct):
return return True
# if the path has not already been loaded, save it in the loaddir_list # if the path has not already been loaded, save it in the loaddir_list
# list for use on reloading # list for use on reloading
@ -146,7 +145,7 @@ def reload_plugins(obj=None,junk1=None,junk2=None,junk3=None):
"""Treated as a callback, causes all plugins to get reloaded. This is """Treated as a callback, causes all plugins to get reloaded. This is
useful when writing and debugging a plugin""" useful when writing and debugging a plugin"""
pymod = compile(r"^(.*)\.py$") pymod = re.compile(r"^(.*)\.py$")
global _success_list,attempt_list,loaddir_list,failmsg_list global _success_list,attempt_list,loaddir_list,failmsg_list