2 Commits

Author SHA1 Message Date
Bobby R. Bruce
a8f88abfb1 misc: Add 'ext' & 'tests' to vscode pythin extraPaths (#1652)
'ext' is set as a Python source path for gem5, like 'src/python'. It
helps vscode users to have vscode aware of this to better analytics and
reduce warnings (most comminly "unable to resolve import).

'tests' isn't in the Python source path when compiling gem5 but it is
when running `tests/main.py`. Though somewhat unideal as is lets vscode
think files in 'src' can import from files in 'test', adding this helps
vscode Python analytics parse the test files which reduces warnings and
aids in betters navigation of the testing code. This is particularly
helpful given the complexity of the testlib testing infrastructure.
2024-10-10 10:18:14 -07:00
Bobby R. Bruce
3443788013 misc: Add "src/python" to vscode Python Analysis Paths (#1647)
This allows vscode to resolve python imported from "src/python".
Warnings regarding these imports are numerous and the issue stops users
of vscode to utilizubg features like navigating the codebase though "Go
to Definition" queries on imported classes/functions.
2024-10-09 14:46:54 -07:00