From: Serge Rehbinder Date: Fri, 19 Feb 2016 13:27:53 +0000 (+0100) Subject: Add hooks X-Git-Tag: sprint-02bis X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=05816c80452b08d87780ab5818f0fe8b3ceedad6;p=tools%2Fsat.git Add hooks --- diff --git a/salomeTools.py b/salomeTools.py index 65d909e..57a0cfc 100755 --- a/salomeTools.py +++ b/salomeTools.py @@ -44,6 +44,12 @@ import config #es.install() gettext.install('salomeTools', os.path.join(satdir, 'src', 'i18n')) +# The possible hooks : +# pre is for hooks to be executed before commands +# post is for hooks to be executed after commands +C_PRE_HOOK = "pre" +C_POST_HOOK = "post" + def find_command_list(dirPath): ''' Parse files in dirPath that end with .py : it gives commands list @@ -63,11 +69,16 @@ lCommand = find_command_list(cmdsdir) # Define all possible option for salomeTools command : sat