Open anke1938 opened 3 years ago
BASE_DIR = os.path.dirname(os.path.abspath(__file__)) # 读取配置文件 userconfig.read(os.path.join(BASE_DIR, 'config.ini'),encoding="utf-8")
这样写不会导致在cron 中找不到config 文件.
代码中的我在cron 中会报错 是否还有其他更好的解决方法
这样写不会导致在cron 中找不到config 文件.
代码中的我在cron 中会报错 是否还有其他更好的解决方法