File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
tools/board_stubs/circuitpython_setboard Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 9
9
def set_board ():
10
10
chosen_board = sys .argv [1 ]
11
11
print (f"setting board: { chosen_board } " )
12
- board_defs_path = (
13
- os .path .sep .join (__file__ .split ("/" )[:- 2 ]) + f"{ os .path .sep } board_definitions{ os .path .sep } "
14
- )
15
- board_stubs_path = (
16
- os .path .sep .join (__file__ .split ("/" )[:- 2 ])
17
- + f"{ os .path .sep } board-stubs{ os .path .sep } __init__.pyi"
18
- )
12
+ site_packages_path = os .path .sep .join (__file__ .split (os .path .sep )[:- 2 ])
13
+ board_defs_path = f"{ site_packages_path } { os .path .sep } board_definitions{ os .path .sep } "
14
+ board_stubs_path = f"{ site_packages_path } { os .path .sep } board-stubs{ os .path .sep } __init__.pyi"
19
15
20
16
if chosen_board not in os .listdir (board_defs_path ):
21
17
print (f"Board: '{ chosen_board } ' was not found" )
You can’t perform that action at this time.
0 commit comments