Skip to content

Commit

Permalink
🐛 修改默认工作目录
Browse files Browse the repository at this point in the history
  • Loading branch information
wiseCirno committed Dec 3, 2024
1 parent b2d5c9e commit db25161
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ async def error_handler(_, context: ContextTypes.DEFAULT_TYPE):
# this project's working dirs are all declared here
working_dirs = ['/neko/komga', '/neko/dmzj', '/neko/epub', '/neko/.temp']
[os.makedirs(name = working_dir, exist_ok = True, mode = 0o777) for working_dir in working_dirs]
os.chdir(os.path.dirname(os.path.realpath(__file__)))

# get compose Environments
_env = EnvironmentReader()
Expand Down

0 comments on commit db25161

Please sign in to comment.