Skip to content

Commit

Permalink
stubber: Prefer rootfolders over cwd.
Browse files Browse the repository at this point in the history
  • Loading branch information
Josverl authored Oct 1, 2024
1 parent a4bb547 commit baee2ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stubber/board/createstubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def get_root() -> str: # sourcery skip: use-assigned-variable
# unix port
c = "."
r = c
for r in [c, "/sd", "/flash", "/", "."]:
for r in ["/sd", "/flash", "/", c, "."]:
try:
_ = os.stat(r)
break
Expand Down

0 comments on commit baee2ae

Please sign in to comment.