Skip to content

Commit a8f88ab

Browse files
authored
misc: Add 'ext' & 'tests' to vscode pythin extraPaths (gem5#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.
1 parent 65ba2dc commit a8f88ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.vscode/settings.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"python.analysis.extraPaths": [
3-
"src/python"
3+
"src/python",
4+
"ext",
5+
"tests"
46
]
57
}

0 commit comments

Comments
 (0)