Coverage for tsfpga/__init__.py: 100%

13 statements  

« prev     ^ index     » next       coverage.py v7.6.7, created at 2024-11-20 20:51 +0000

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

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

3# 

4# This file is part of the tsfpga project, a project platform for modern FPGA development. 

5# https://tsfpga.com 

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

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

8 

9# Standard libraries 

10from pathlib import Path 

11 

12# Local folder libraries 

13from .about import get_short_slogan 

14 

15THIS_DIR = Path(__file__).parent 

16REPO_ROOT = THIS_DIR.parent.resolve() 

17 

18TSFPGA_PATH = REPO_ROOT / "tsfpga" 

19TSFPGA_DOC = REPO_ROOT / "doc" 

20TSFPGA_TCL = THIS_DIR / "vivado" / "tcl" 

21TSFPGA_GENERATED = REPO_ROOT / "generated" 

22 

23TSFPGA_EXAMPLES = TSFPGA_PATH / "examples" 

24TSFPGA_EXAMPLE_MODULES = TSFPGA_EXAMPLES / "modules" 

25 

26# Default encoding when opening files 

27DEFAULT_FILE_ENCODING = "utf-8" 

28 

29__version__ = "13.0.1-dev" 

30__doc__ = get_short_slogan() # pylint: disable=redefined-builtin