diff options
author | ryuslash | 2010-02-08 01:48:12 +0100 |
---|---|---|
committer | ryuslash | 2010-02-08 01:48:12 +0100 |
commit | cc571e6d8096856c083a6909ba2fe7a600f166b3 (patch) | |
tree | fcd4a85a6fc19bdb85659862d499e90e81a43a41 | |
parent | 7707d5d3c646a84c18704df97585e04e74565654 (diff) | |
download | 4grab-cc571e6d8096856c083a6909ba2fe7a600f166b3.tar.gz 4grab-cc571e6d8096856c083a6909ba2fe7a600f166b3.zip |
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.
-rw-r--r-- | download.py | 2 |
1 files changed, 2 insertions, 0 deletions
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() |