aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmailconf
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-11-08 16:53:54 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-11-08 16:53:54 +0000
commit45bcf00ee95d474f989d5594da378116d63702be (patch)
treebaeb26c4b1f80cd7babb0cb28950a682b71b5fa5 /fetchmailconf
parent63e45826907ea86d967c5903fc31fbde5977db73 (diff)
downloadfetchmail-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-xfetchmailconf8
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)