From 63422103a29dd4faace5de7f0ca227e1349adc87 Mon Sep 17 00:00:00 2001 From: Castro0o Date: Wed, 8 Apr 2020 09:24:05 +0200 Subject: [PATCH] download_imgs.py saving images to images/ in partent directory --- download_imgs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/download_imgs.py b/download_imgs.py index a8af106..31bbc95 100644 --- a/download_imgs.py +++ b/download_imgs.py @@ -6,9 +6,9 @@ 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') +wd = os.path.dirname(os.path.abspath(__file__)) # working directory +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')