Skip to content

Commit

Permalink
fix empty dirname bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sksat committed Sep 21, 2023
1 parent ce59938 commit 1eba5c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script/ci/check_coding_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ def main():
print("WARNING: " + rule_name + " rule is ignored!!")
settings["check_funcs"] = check_funcs # ここだけ, settings に追記している

check_root_dir = os.path.dirname(setting_file_path) + r"/"
dname = os.path.dirname(setting_file_path)
if not dname:
dname = os.getcwd()
check_root_dir = dname + r"/"

if not check_coding_rule(check_root_dir, settings):
print("The above files are invalid coding rule.")
Expand Down

0 comments on commit 1eba5c6

Please sign in to comment.