Skip to content

Commit

Permalink
Update util.py
Browse files Browse the repository at this point in the history
Use same configuration file as Linux on macOS
  • Loading branch information
pierreluctg authored Sep 7, 2023
1 parent 1774051 commit 739960c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion can/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

CONFIG_FILES = ["~/can.conf"]

if platform.system() == "Linux":
if platform.system() in ("Linux", "Darwin"):
CONFIG_FILES.extend(["/etc/can.conf", "~/.can", "~/.canrc"])
elif platform.system() == "Windows" or platform.python_implementation() == "IronPython":
CONFIG_FILES.extend(["can.ini", os.path.join(os.getenv("APPDATA", ""), "can.ini")])
Expand Down

0 comments on commit 739960c

Please sign in to comment.