From 9010e5dadd33be8a4f58003bbb6650ec53ca14be Mon Sep 17 00:00:00 2001 From: Carol Spears Date: Fri, 30 Sep 2005 17:10:08 +0000 Subject: [PATCH] removed code that limited plug-in registration. * plug-ins/pygimp/gimpfu.py: removed code that limited plug-in registration. --- ChangeLog | 5 +++++ plug-ins/pygimp/gimpfu.py | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3360f0e5fd..f34e399385 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-09-30 Carol Spears + + * plug-ins/pygimp/gimpfu.py: removed code that limited plug-in + registration. + 2005-09-30 Michael Natterer * app/vectors/gimpstroke.[ch]: added stubs of two new snapping diff --git a/plug-ins/pygimp/gimpfu.py b/plug-ins/pygimp/gimpfu.py index 55c81a3b2d..7cf68ff3ee 100644 --- a/plug-ins/pygimp/gimpfu.py +++ b/plug-ins/pygimp/gimpfu.py @@ -183,13 +183,7 @@ def register(func_name, blurb, help, author, copyright, date, menupath, if not letterCheck(ent[1]): raise error, "result name contains illegal characters" - if menupath[:8] == '/' or \ - menupath[:7] == '/' or \ - menupath[:7] == '/' or \ - menupath[:10] == '/': - plugin_type = PLUGIN - else: - raise error, "Invalid menu path" + plugin_type = PLUGIN if not func_name[:7] == 'python_' and \ not func_name[:10] == 'extension_' and \