diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-11-08 16:53:54 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-11-08 16:53:54 +0000 |
commit | 45bcf00ee95d474f989d5594da378116d63702be (patch) | |
tree | baeb26c4b1f80cd7babb0cb28950a682b71b5fa5 /fetchmailconf | |
parent | 63e45826907ea86d967c5903fc31fbde5977db73 (diff) | |
download | fetchmail-45bcf00ee95d474f989d5594da378116d63702be.tar.gz fetchmail-45bcf00ee95d474f989d5594da378116d63702be.tar.bz2 fetchmail-45bcf00ee95d474f989d5594da378116d63702be.zip |
Easy bug fixes for this round.
svn path=/trunk/; revision=3543
Diffstat (limited to 'fetchmailconf')
-rwxr-xr-x | fetchmailconf | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fetchmailconf b/fetchmailconf index 18c81fd8..f049a04c 100755 --- a/fetchmailconf +++ b/fetchmailconf @@ -1770,10 +1770,10 @@ class RunWindow(Frame): self.update() # Draw widget before executing fetchmail - # Always look for a runnable command in the current directory first. - # This avoids some obscure version-skew errors that can occur if you - # pick up an old fetchmail from the standard system locations. - os.environ["PATH"] = ".:" + os.environ["PATH"] + # Always look for a runnable command in the directory we're running in + # first. This avoids some obscure version-skew errors that can occur + # if you pick up an old fetchmail from the standard system locations. + os.environ["PATH"] = os.path.dirname(sys.argv[0]) + ":" + os.environ["PATH"] child_stdout = os.popen(command + " 2>&1", "r") while 1: ch = child_stdout.read(1) |