Thomas Pfaff wrote:
I started using the nice Pythonwin IDE together with Python 2.3 (I have
come to prefer its editor to IDLE).
My problem is, that when I want to run a script in the debugger, I can
give the script name and arguments, but I can't tell it in which
directory it should run.
I googled this group but didn't find anything helpful so far.
I could use some os.chdir in my code, but that's ugly and I neither want
to copy the script around to the places where I would like to test it.
Thanks in advance
When you have initiated PythonWin, try opening (^O) the file you wish to
debug. By selecting the file directory and file you have chosen the
current working directory for the file.
Alternatively, in the Windows Explorer, try right clicking on the py
file you wish to debug. One of the options given is likely to be PythonWin.
From http Thu May 12 20:57:00 2005
From: http (Paul Rubin)
Date: 12 May 2005 11:57:00 -0700
Subject: urllib download insanity
Skip Montanaro <skip at pobox.com> writes:
Timothy> downloading the OLD file i've deleted! if i download it via IE,
Timothy> i get the new file. SO, my only conculsion is that urllib is
Timothy> caching it some where. BUT i'm already calling urlcleanup(), so
Timothy> what else can i do? here is the code
Is there a proxy between you and the web server?
IE also caches extremely aggressively itself. There are a lot of
different HTTP headers that affect caching. You have to set ALL of
them to not cache. You have to set the cache control header AND set
an expiration date in the past, and maybe a couple other things like