anyone have issues running a `pyflyte run` command...
# flyte-support
g
anyone have issues running a
pyflyte run
command from python? os or subprocess?
f
what issues? you can also just use flyteremote directly
instead of using the cli
d
Copy code
if __name__ == "__main__":
    from flytekit.clis.sdk_in_container import pyflyte
    from click.testing import CliRunner
    import os

    runner = CliRunner()
    path = os.path.realpath(__file__)
    result = runner.invoke(pyflyte.main,
                        ["run", path, "combined_workflow", "--image", "<https://bit.ly/3KZ95q4>"])
    print("Local Execution: ", result.output)

    result = runner.invoke(pyflyte.main,
                           ["run", "--remote", path, "combined_workflow", "--image", "<https://bit.ly/3KZ95q4>"])
    print("Remote Execution: ", result.output)
this is my favorite setup for
pyflyte run
you can simply just
python file.py
to do it
any place