diff --git a/bin/utils/__init__.py b/bin/utils/__init__.py index 8c9ff79..75feb1f 100644 --- a/bin/utils/__init__.py +++ b/bin/utils/__init__.py @@ -134,7 +134,7 @@ def single_download(url): if __name__ != '__main__': - if os.path.exists('./app.py') and not os.path.exists('./log'): + if not os.path.exists('./log'): os.mkdir('./log') if not os.path.exists('./bin/assets/theme.db'): logger.error('没有检测到本地主题数据库即将开始下载') diff --git a/log/.gitkeep b/log/.gitkeep new file mode 100644 index 0000000..e69de29