From 45bcf00ee95d474f989d5594da378116d63702be Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 8 Nov 2001 16:53:54 +0000 Subject: Easy bug fixes for this round. svn path=/trunk/; revision=3543 --- fetchmailconf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fetchmailconf') 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) -- cgit v1.2.3