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