summaryrefslogtreecommitdiff
path: root/buildstream/__main__.py
blob: 4b0fdabfe3343c885da943faa51cc8ab78470cb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
##################################################################
#                      Private Entry Point                       #
##################################################################
#
# This allows running the cli when BuildStream is uninstalled,
# as long as BuildStream repo is in PYTHONPATH, one can run it
# with:
#
#    python3 -m buildstream [program args]
#
# This is used when we need to run BuildStream before installing,
# like when we build documentation.
#
if __name__ == '__main__':
    # pylint: disable=no-value-for-parameter
    from ._frontend.cli import cli
    cli()