diff options
| author | Konrad Delong <konryd@gmail.com> | 2010-08-05 15:48:12 +0200 |
|---|---|---|
| committer | Konrad Delong <konryd@gmail.com> | 2010-08-05 15:48:12 +0200 |
| commit | c49bb3e92dd1b471d086115bfcee03eb9a45963c (patch) | |
| tree | d24022f25fd5724e99cd195792434baa7e1366c7 /src/distutils2/command/cmd.py | |
| parent | deed0ac3e04fc32cdbad51038eb4f74ddf568051 (diff) | |
| download | disutils2-c49bb3e92dd1b471d086115bfcee03eb9a45963c.tar.gz | |
Add command post-hooks
Diffstat (limited to 'src/distutils2/command/cmd.py')
| -rw-r--r-- | src/distutils2/command/cmd.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/distutils2/command/cmd.py b/src/distutils2/command/cmd.py index 5acfb32..73ac9e1 100644 --- a/src/distutils2/command/cmd.py +++ b/src/distutils2/command/cmd.py @@ -51,6 +51,12 @@ class Command(object): # defined. The canonical example is the "install" command. sub_commands = [] + # Pre and post command hooks are run just before or just after the command + # itself. They are simple functions that receive the command instance. They + # should be specified as dotted strings. + pre_hook = None + post_hook = None + # -- Creation/initialization methods ------------------------------- |
