diff options
Diffstat (limited to 'src/buildstream/__main__.py')
-rw-r--r-- | src/buildstream/__main__.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/buildstream/__main__.py b/src/buildstream/__main__.py new file mode 100644 index 000000000..4b0fdabfe --- /dev/null +++ b/src/buildstream/__main__.py @@ -0,0 +1,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() |