download_imgs.py saving images to images/ in partent directory

pull/7/head
Castro0o 5 years ago
parent c2cb9d1de3
commit 63422103a2

@ -7,8 +7,8 @@ from functions import update_json, remove_nonwords
site = Site(host='hub.xpub.nl/sandbox', path='/itchwiki/')
wd = os.path.dirname(os.path.abspath(__file__)) # working directory
imgdir = os.path.join(wd, 'images')
parent_d = os.path.dirname(wd) # parent directory
imgdir = os.path.join(parent_d, 'images')
os.makedirs(imgdir, exist_ok=True) # create images/ dir
imgsjson_fn = os.path.join(wd, 'images.json')

Loading…
Cancel
Save