diff options
author | bwarsaw <> | 2003-09-22 02:29:51 +0000 |
---|---|---|
committer | bwarsaw <> | 2003-09-22 02:29:51 +0000 |
commit | 33ad4402b372695b9526f57c33dd8f05c0eeddb3 (patch) | |
tree | 22a731818f773f8bf4828a333f452049f1b04d82 /bin/mailmanctl | |
parent | c6e5c888e2cfc4829e02badf397d2b85b3f39f74 (diff) | |
download | mailman2-33ad4402b372695b9526f57c33dd8f05c0eeddb3.tar.gz mailman2-33ad4402b372695b9526f57c33dd8f05c0eeddb3.tar.xz mailman2-33ad4402b372695b9526f57c33dd8f05c0eeddb3.zip |
Backporting from the HEAD -- bin and cron scripts
Diffstat (limited to 'bin/mailmanctl')
-rw-r--r-- | bin/mailmanctl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/mailmanctl b/bin/mailmanctl index 1243dbd4..4ebeb836 100644 --- a/bin/mailmanctl +++ b/bin/mailmanctl @@ -250,9 +250,10 @@ def start_runner(qrname, slice, count): # # Craft the command line arguments for the exec() call. rswitch = '--runner=%s:%d:%d' % (qrname, slice, count) - # BAW: should argv[0] be `python'? exe = os.path.join(mm_cfg.BIN_DIR, 'qrunner') - os.execl(mm_cfg.PYTHON, 'qrunner', exe, rswitch, '-s') + # mm_cfg.PYTHON, which is the absolute path to the Python interpreter, + # must be given as argv[0] due to Python's library search algorithm. + os.execl(mm_cfg.PYTHON, mm_cfg.PYTHON, exe, rswitch, '-s') # Should never get here raise RuntimeError, 'os.execl() failed' |