In the documentation of pybuilder
it says that
The default location for main python sources is
src/main/python
This is a convention borrowed from Apache Maven. You can alter this location...
But it is not mentioned anywhere how to change the code location. Thanks
Thanks to @jordanm 's comment.
The solution is to set the project property dir_source_main_python
with the new source location.
@init
def initialize(project):
project.set_property('dir_source_main_python', 'new_source_path')