Coverage for qpdk / config.py: 100%
28 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-14 10:27 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-14 10:27 +0000
1"""Store path."""
3__all__ = ["PATH"]
5import pathlib
6from dataclasses import dataclass
7from typing import final
9cwd = pathlib.Path.cwd()
10cwd_config = cwd / "config.yml"
11module = pathlib.Path(__file__).parent.absolute()
12repo = module.parent
15@final
16@dataclass
17class Path:
18 """Creates object for referencing paths in repository."""
20 module = module
21 repo = repo
22 build = repo / "build"
23 docs = repo / "docs"
24 gds = module / "gds"
25 simulation = build / "simulation"
26 tests = repo / "tests"
28 cells = module / "cells"
29 derived = module / "derived"
30 klayout = module / "klayout"
31 models = module / "models"
32 samples = module / "samples"
34 lyp = klayout / "layers.lyp"
35 lyt = klayout / "tech.lyt"
36 lyp_yaml = module / "layers.yaml"
37 tech = module / "klayout" / "tech"
40PATH = Path()