We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dailycheckin --config [config.json路径]
看了一下源码,是从这几个位置获取config.json的
dailycheckin/dailycheckin/main.py
Lines 24 to 32 in 46349fb
可以添加一个可选的--config [config.json路径]参数,如果参数存在,就优先使用参数的config.json路径
--config [config.json路径]
#349, #286
手动部署的时候可以直接指定config.json路径,避免部分命令比如crontab执行dailycheckin命令的pwd不对,导致程序找不到config.json
dailycheckin
config.json
Lines 15 to 18 in 46349fb
添加
parser.add_argument("--config", nargs="+", help="config.json绝对路径")
No response
The text was updated successfully, but these errors were encountered:
我也遇到了类似的问题,我目前的解决方法是在自己的脚本文件中import dailycheckin 像这样:
import os import dailycheckin.main as dailycheckin os.chdir("config.json所在的路径") dailycheckin.checkin()
Sorry, something went wrong.
归档到 projects 中 https://github.com/users/Sitoi/projects/1 关闭 issue
No branches or pull requests
🥰 需求描述
看了一下源码,是从这几个位置获取config.json的
dailycheckin/dailycheckin/main.py
Lines 24 to 32 in 46349fb
可以添加一个可选的
--config [config.json路径]
参数,如果参数存在,就优先使用参数的config.json路径#349, #286
手动部署的时候可以直接指定config.json路径,避免部分命令比如crontab执行
dailycheckin
命令的pwd不对,导致程序找不到config.json
🧐 解决方案
dailycheckin/dailycheckin/main.py
Lines 15 to 18 in 46349fb
添加
📝 补充信息
No response
The text was updated successfully, but these errors were encountered: