From 1339ba56042551acc778d296814f4896d91d8181 Mon Sep 17 00:00:00 2001 From: Matt Theissen Date: Wed, 31 Aug 2022 22:20:16 -0500 Subject: [PATCH] Added a variable for directory loction --- image_bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/image_bot.py b/image_bot.py index cad8688..dd36409 100755 --- a/image_bot.py +++ b/image_bot.py @@ -8,6 +8,7 @@ botToken = i.botToken bot = telebot.TeleBot(botToken) chatId = i.chatId +dirLoc = i.dirLoc import time from watchdog.observers import Observer @@ -26,7 +27,7 @@ def on_created(event): my_event_handler.on_created = on_created -path = "." +path = dirLoc go_recursively = False my_observer = Observer() my_observer.schedule(my_event_handler, path, recursive=go_recursively)