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.
This commit is contained in:
ryuslash 2010-02-08 01:48:12 +01:00
parent 7707d5d3c6
commit cc571e6d80

View file

@ -6,6 +6,8 @@ import progressbar
import config import config
savedir = config.Configuration().get_download_location() savedir = config.Configuration().get_download_location()
if not os.path.exists(savedir):
os.makedirs(savedir)
def get_thread_links(baseurl): def get_thread_links(baseurl):
myparser = htmlparser.MyParser() myparser = htmlparser.MyParser()