Skip to content

list tasks in subdir causes exception #226

@michikuehne

Description

@michikuehne

Hi,

If executing "pyb -t" or "pyb --list-tasks" in a subdir from the dir, where the build.py is located, causes the following exception:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pyb", line 25, in <module>
    sys.exit(pybuilder.cli.main(*sys.argv[1:]))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pybuilder/cli.py", line 326, in main
    project_directory=options.project_directory)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pybuilder/reactor.py", line 102, in prepare_build
    project_directory, project_descriptor)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pybuilder/reactor.py", line 294, in verify_project_directory
    project_descriptor_full_path)
pybuilder.errors.PyBuilderException: Project directory does not contain descriptor file: /Users/michi/git/immobilienscout24/afp-cli/src/build.py

I excepted the task list or a helpful error message.

Best,
Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions