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)
|
desc = desc + str(addons)
|
||||||
return desc
|
return desc
|
||||||
|
|
||||||
|
# Some of this could go in __init__
|
||||||
def setup(self):
|
def setup(self):
|
||||||
os.environ["TZ"] = "America/Toronto"
|
os.environ["TZ"] = "America/Toronto"
|
||||||
time.tzset()
|
time.tzset()
|
||||||
self.now = time.mktime(time.localtime())
|
self.now = time.mktime(time.localtime())
|
||||||
# Check for log and config files/paths, create empty directories if needed
|
# 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():
|
if not Path(self.log_dir).exists():
|
||||||
print(
|
print(
|
||||||
"No log file path exists. Yark! We'll try and make {}...".format(
|
"No log file path exists. Yark! We'll try and make {}...".format(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue