summaryrefslogtreecommitdiff
path: root/src/buildstream/__main__.py
blob: 556a0f67e0405fad826fdbc63f11b63464556ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
##################################################################
#                      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()