- Pybuilder, around since 2013.
- The VS Code Python Plugin, developed by Don Jayamanne in 2016 and now an official plugin!
The default PyBuilder layout looks like this:
build.py
\ src
\ main
\ python
\ <python packages, etc.. >
\ unittest
\ python
\ <python unittests, etc.. >
(If you don't understand what PyBuilder is what why the layout looks like this, please go read the PyBuilder documentation.)
How do I make VS Code open the whole project and then recognize only src/main/python
and src/unittest/python
as source folders?
In other words, if I have a package pete
in src/main/python/pete
and a module dog
in pete
, then I want to be able to have a file (e.g. test_pete.py
) in src/unittest/python
and use import pete.dog
in that file.