Describe the bug
If the folders conf/, conf/scripts, or conf/marquee do not exist when kf2-ma is started kf2-ma will crash during configuration.
To Reproduce
Steps to reproduce the behavior:
Delete conf/
Restart KF2-MA
See error
Expected behavior
Configuration folders/tree are built automatically.
Desktop (please complete the following information):
OS: KDE Neon
KF2-MA version: 0.1.5
Server (please complete the following information):
Mods: N/A
Web admin resource modifications: N/A
Applied web-admin patches: Yes
Log
the_z@saturn:~/prog/kf2-magicked-admin$ rm -rf magicked_admin/conf/
the_z@saturn:~/prog/kf2-magicked-admin$ python3 magicked_admin/magicked_admin.py
Traceback (most recent call last):
File "magicked_admin/magicked_admin.py", line 17, in <module>
from chatbot.chatbot import Chatbot
File "/media/the_z/data/prog/kf2-magicked-admin/magicked_admin/chatbot/chatbot.py", line 5, in <module>
from utils import debug, find_data_file
File "/media/the_z/data/prog/kf2-magicked-admin/magicked_admin/utils/__init__.py", line 34, in <module>
os.environ.get("LOGFILE", find_data_file("conf/magicked_admin.log"))
File "/usr/lib/python3.6/logging/handlers.py", line 437, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.6/logging/__init__.py", line 1032, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python3.6/logging/__init__.py", line 1061, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/media/the_z/data/prog/kf2-magicked-admin/magicked_admin/conf/magicked_admin.log'
Describe the bug If the folders
conf/
,conf/scripts
, orconf/marquee
do not exist when kf2-ma is started kf2-ma will crash during configuration.To Reproduce Steps to reproduce the behavior:
conf/
Expected behavior Configuration folders/tree are built automatically.
Desktop (please complete the following information):
Log