forked from varia/bots
debugging the default stylesheet name and path
This commit is contained in:
parent
9a02566c62
commit
35b9f4fbe3
@ -171,8 +171,8 @@ class Logbot(Bot):
|
|||||||
|
|
||||||
if not os.path.exists(room_path):
|
if not os.path.exists(room_path):
|
||||||
os.mkdir(room_path)
|
os.mkdir(room_path)
|
||||||
stylesheet_path = os.path.join("stylesheets", self.db[room]["stylesheet"], ".css")
|
stylesheet_path = os.path.join("stylesheets", self.db[room]["stylesheet"] + ".css")
|
||||||
stylesheet_dest_path = os.path.join(room_path,"stylesheet.css")
|
stylesheet_dest_path = os.path.join(room_path, "stylesheet.css")
|
||||||
shutil.copy(stylesheet_path, stylesheet_dest_path)
|
shutil.copy(stylesheet_path, stylesheet_dest_path)
|
||||||
self.log.info(f"Created a folder for: { room }")
|
self.log.info(f"Created a folder for: { room }")
|
||||||
self.log.info(f"Added stylesheet.css to: { room }")
|
self.log.info(f"Added stylesheet.css to: { room }")
|
||||||
|
Loading…
Reference in New Issue
Block a user