Skip to content
New issue

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

config.ini 文件位置定义 #30

Open
anke1938 opened this issue Aug 8, 2021 · 1 comment
Open

config.ini 文件位置定义 #30

anke1938 opened this issue Aug 8, 2021 · 1 comment
Labels
wontfix This will not be worked on

Comments

@anke1938
Copy link

anke1938 commented Aug 8, 2021

    BASE_DIR = os.path.dirname(os.path.abspath(__file__))
    # 读取配置文件
    userconfig.read(os.path.join(BASE_DIR, 'config.ini'),encoding="utf-8")

这样写不会导致在cron 中找不到config 文件.

代码中的我在cron 中会报错 是否还有其他更好的解决方法

@hwkxk
Copy link
Owner

hwkxk commented Aug 9, 2021

没试过,这个问题暂不清楚~

@hwkxk hwkxk added the wontfix This will not be worked on label Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants