Coverage for tsfpga/vivado/test/conftest.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v6.4, created at 2022-05-28 04:01 +0000

1# -------------------------------------------------------------------------------------------------- 

2# Copyright (c) Lukas Vik. All rights reserved. 

3# 

4# This file is part of the tsfpga project. 

5# https://tsfpga.com 

6# https://gitlab.com/tsfpga/tsfpga 

7# -------------------------------------------------------------------------------------------------- 

8 

9import sys 

10 

11import tsfpga 

12 

13# Do PYTHONPATH insert() instead of append() to prefer any local repo checkout over any pip install 

14PATH_TO_HDL_REGISTERS = tsfpga.REPO_ROOT.parent.resolve() / "hdl_registers" 

15sys.path.insert(0, str(PATH_TO_HDL_REGISTERS)) 

16PATH_TO_VUNIT = tsfpga.REPO_ROOT.parent.parent.resolve() / "vunit" / "vunit" 

17sys.path.insert(0, str(PATH_TO_VUNIT))