Small comment updates
This commit is contained in:
parent
1787d4da99
commit
1abda8d6e4
1 changed files with 2 additions and 1 deletions
|
|
@ -66,12 +66,13 @@ class Discorss:
|
|||
desc = desc + str(addons)
|
||||
return desc
|
||||
|
||||
# Some of this could go in __init__
|
||||
def setup(self):
|
||||
os.environ["TZ"] = "America/Toronto"
|
||||
time.tzset()
|
||||
self.now = time.mktime(time.localtime())
|
||||
# Check for log and config files/paths, create empty directories if needed
|
||||
# TODO: make this cleaner
|
||||
# TODO: change output to log file, as warning/error
|
||||
if not Path(self.log_dir).exists():
|
||||
print(
|
||||
"No log file path exists. Yark! We'll try and make {}...".format(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue