From a38515ab100db3f93a965e0e0b2ceaeeae3ae0b8 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 27 Feb 2021 11:08:21 +0100 Subject: [PATCH] Make room_path local because not used elsewhere --- LogBot/logbot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 833f22a..fd87ece 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -155,8 +155,8 @@ logbot @uptime: To check how long @logbot has been around for room in self.rooms: roomname = str(re.match(r".*@", room).group()).replace("@", "") - self.room_path = os.path.join(self.output, roomname) - self.log.info(f"Room path is set to: { self.room_path }") + room_path = os.path.join(self.output, roomname) + self.log.info(f"Processing setup logic for: {room_path}") # Check if the room is in the database already if not room in self.db.keys(): @@ -166,9 +166,9 @@ logbot @uptime: To check how long @logbot has been around self.log.info(f"Added to the database: { room }") # Check if the room has an output folder already - if not os.path.exists(self.room_path): - os.mkdir(self.room_path) - shutil.copy("stylesheet.css", self.room_path) + if not os.path.exists(room_path): + os.mkdir(room_path) + shutil.copy("stylesheet.css", room_path) self.log.info(f"Created a folder for: { room }") self.log.info(f"Copied stylesheet.css to: { room }")