From a48f72863f93d051303c24902e924022a1d53a16 Mon Sep 17 00:00:00 2001 From: Paillat Date: Mon, 15 May 2023 16:53:31 +0200 Subject: [PATCH] feat(main.py): add instructions for first time users to create required files and folders --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 678833a..86a56cb 100644 --- a/main.py +++ b/main.py @@ -21,7 +21,11 @@ async def main(): subject = int(input("Which subject do you want to generate ideas for? (enter the number): ")) subject = subjects[subject] subjectdirpath = "videos/" + subject[:25].replace(" ", "_").replace(":", "") - if not os.path.exists(subjectdirpath): os.makedirs(subjectdirpath) + if not os.path.exists(subjectdirpath): + os.makedirs(subjectdirpath) + input("It looks like it is the first time you are generating ideas for this subject. The requiered folder has been created. Press enter to continue.") + input("Please put all the requiered google credentials files in that folder. Press enter to continue.") + input("Please put a file called bcg.png in that folder. It will be used as the background of the thumbnails. Press enter to continue.") if input("Do you want to generate new ideas? (y/n)") == "y": await generate_ideas(subjectdirpath, subject) with open(subjectdirpath + '/ideas.json', 'r', encoding='utf-8') as f: