Should have tried harder myself - this works, but is there a better way of doing it?
filename, headers = urllib.urlretrieve(link, path.join(os.getcwd(), "applications", request.application, "uploads", "foo.zip")) On Jun 18, 1:56 pm, scausten <[email protected]> wrote: > I'm trying to download (using urllib.urlretrieve) a remote file into > my application. It's a zip file containing an IP-to-country lookup > table. I want to download the zip to the application's file system > (probably 'uploads'), unzip it, process the csv and then import the > sanitised data into my ip-to-country database (using > import_from_csv_file). > > How should I specify/access locations in the filesystem?

