Skip to content

Commit c7cc874

Browse files
committed
mv other assets
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
1 parent 11710c6 commit c7cc874

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed
File renamed without changes.
File renamed without changes.

fpgaperf.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import glob
2121
import logging
22+
from pathlib import Path
2223
import os
2324
import re
2425
import signal
@@ -317,8 +318,7 @@ def get_vendor(toolchain, board):
317318

318319
def get_vendors(toolchain=None, board=None):
319320
'''Return vendor information'''
320-
with open(os.path.join(root_dir, 'other', 'vendors.yaml'),
321-
'r') as vendors_file:
321+
with (Path(root_dir) / 'assets/vendors.yaml').open('r') as vendors_file:
322322
vendors = yaml.safe_load(vendors_file)
323323

324324
if toolchain is None and board is None:
@@ -351,15 +351,13 @@ def get_vendors(toolchain=None, board=None):
351351

352352
def get_boards(board=None):
353353
'''Query all supported boards'''
354-
with open(os.path.join(root_dir, 'other', 'boards.yaml'),
355-
'r') as boards_file:
354+
with (Path(root_dir) / 'assets/boards.yaml').open('r') as boards_file:
356355
boards = yaml.safe_load(boards_file)
357356
if board is None:
358357
return boards
359-
elif board in boards:
358+
if board in boards:
360359
return [board]
361-
else:
362-
return []
360+
return []
363361

364362

365363
def list_boards():

0 commit comments

Comments
 (0)