From cc571e6d8096856c083a6909ba2fe7a600f166b3 Mon Sep 17 00:00:00 2001 From: ryuslash Date: Mon, 8 Feb 2010 01:48:12 +0100 Subject: Still wasn't working on windows if savedir did not exists, then downloading would never work. Now if it does not exist, it is created, or it crashes and burns if it isn't allowed. --- download.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'download.py') diff --git a/download.py b/download.py index e448fa0..003e718 100644 --- a/download.py +++ b/download.py @@ -6,6 +6,8 @@ import progressbar import config savedir = config.Configuration().get_download_location() +if not os.path.exists(savedir): + os.makedirs(savedir) def get_thread_links(baseurl): myparser = htmlparser.MyParser() -- cgit v1.2.3-54-g00ecf