From f61e607c8108bae3f7bd067ff0416a9b8985fd82 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 7 Jun 2023 14:43:56 +0000 Subject: [PATCH] Update 'root/app/fanficdownload.py' --- root/app/fanficdownload.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/app/fanficdownload.py b/root/app/fanficdownload.py index e1ef09a..75c7e6b 100644 --- a/root/app/fanficdownload.py +++ b/root/app/fanficdownload.py @@ -126,11 +126,11 @@ def downloader(args): url, inout_file, path, live = args # loc = mkdtemp() # loc = '/config/downloads' - if not exists('/config/downloads'): - makedirs('/config/downloads') + loc = '/config/downloads' + if not exists(loc): + makedirs(loc) copyfile("/config/personal.ini", "{}/personal.ini".format(loc)) copyfile("/config/defaults.ini", "{}/defaults.ini".format(loc)) - loc = '/config/downloads' output = "" output += log("Working with url {}".format(url), 'HEADER', live) storyId = None