| 1234567891011121314151617 |
- # This Python file uses the following encoding: utf-8
- # @author runhey
- # github https://github.com/runhey
- import os
- from datetime import datetime, timedelta, timezone
- DEFAULT_TIME = datetime(2023, 1, 1, 0, 0)
- def filepath_config(filename, mod_name='script') -> str:
- """
- 返回配置文件的路径
- """
- if mod_name == 'script':
- return os.path.join('./config', f'{filename}.json')
- else:
- return os.path.join('./config', f'{filename}.{mod_name}.json')
|