mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Move user data to ~/.config/onlylegs location
Update location of default themes folder
This commit is contained in:
parent
828167f762
commit
512f6f623e
31 changed files with 158 additions and 110 deletions
|
@ -1,14 +1,15 @@
|
|||
import logging
|
||||
import os
|
||||
from datetime import datetime
|
||||
import platformdirs
|
||||
|
||||
# Prevent werkzeug from logging
|
||||
logging.getLogger('werkzeug').disabled = True
|
||||
|
||||
|
||||
class logger:
|
||||
def innit_logger(app):
|
||||
filepath = os.path.join(app.root_path, 'user', 'logs')
|
||||
def innit_logger():
|
||||
filepath = os.path.join(platformdirs.user_config_dir('onlylegs'), 'logs')
|
||||
#filename = f'onlylogs_{datetime.now().strftime("%Y%m%d")}.log'
|
||||
filename = 'only.log'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue