str not Path

This commit is contained in:
shenjack 2023-05-14 23:51:01 +08:00
parent a0f55895d1
commit e0c281c111

View File

@ -90,7 +90,7 @@ class Game(Options):
if not Path('logs/').is_dir(): if not Path('logs/').is_dir():
Path('logs/').mkdir() Path('logs/').mkdir()
mkdir = True mkdir = True
self.logging_config['handlers']['file']['filename'] = str(log_path.absolute()) self.logging_config['handlers']['file']['filename'] = log_path
logging.config.dictConfig(self.logging_config) logging.config.dictConfig(self.logging_config)
self.logger = logging.getLogger('main') self.logger = logging.getLogger('main')
if mkdir: if mkdir: