fix: working dir error when input config path

feat: report publish topic when error
This commit is contained in:
Xuwznln
2025-08-04 14:04:31 +08:00
parent 46aa7a7bd2
commit 343f394203
2 changed files with 11 additions and 10 deletions

View File

@@ -171,6 +171,8 @@ def main():
"error",
)
os._exit(1)
elif config_path and os.path.exists(config_path):
working_dir = os.path.dirname(config_path)
elif os.path.exists(working_dir) and os.path.exists(os.path.join(working_dir, "local_config.py")):
config_path = os.path.join(working_dir, "local_config.py")
elif not config_path and (