diff options
| author | Barry Warsaw | 2010-08-30 11:03:00 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2010-08-30 11:03:00 -0400 |
| commit | 6e40cd75cd88ef930ced8c1df15ebc93dbf683d4 (patch) | |
| tree | 518a0685cc0f490453d921ef5af3c8f4bc824a3f /src/mailman/app/docs | |
| parent | 4c8497c350f93ef4a6b6ccf6ebd45abb03fd4d8e (diff) | |
| download | mailman-6e40cd75cd88ef930ced8c1df15ebc93dbf683d4.tar.gz mailman-6e40cd75cd88ef930ced8c1df15ebc93dbf683d4.tar.zst mailman-6e40cd75cd88ef930ced8c1df15ebc93dbf683d4.zip | |
This is a better fix than the previous commit, since it uses a principled approach to finding the bin directory. Thanks go to Gary Poster.
Diffstat (limited to 'src/mailman/app/docs')
| -rw-r--r-- | src/mailman/app/docs/hooks.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/app/docs/hooks.txt b/src/mailman/app/docs/hooks.txt index e5b3f1ae1..efd5530f5 100644 --- a/src/mailman/app/docs/hooks.txt +++ b/src/mailman/app/docs/hooks.txt @@ -48,11 +48,11 @@ we can't run those initialization steps in process, so call a command line script that will produce no output to force the hooks to run. >>> import subprocess + >>> from mailman.testing.layers import ConfigLayer >>> def call(): ... proc = subprocess.Popen( ... 'bin/mailman lists --domain ignore -q'.split(), - ... # testrunner runs from ./parts/test/working-directory - ... cwd='../../..', + ... cwd=ConfigLayer.root_directory, ... env=dict(MAILMAN_CONFIG_FILE=config_path, ... PYTHONPATH=config_directory), ... stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
