X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=salomeTools.py;h=4b25cfa68fdd9ae902fd8f5ced8d13bc7c2b624b;hb=e78f0659aceb8e693fd02b01531215180256543c;hp=65d909e07595abc4c2a16b76dd49a60ae445fe33;hpb=1e9717757dd2cfb753731b7421ae9a092ef84747;p=tools%2Fsat.git diff --git a/salomeTools.py b/salomeTools.py index 65d909e..4b25cfa 100755 --- a/salomeTools.py +++ b/salomeTools.py @@ -22,6 +22,7 @@ # python imports import os import sys +import tempfile import imp import types import gettext @@ -44,6 +45,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,22 +70,33 @@ lCommand = find_command_list(cmdsdir) # Define all possible option for salomeTools command : sat