Pass command line args as list (#1486)

Co-authored-by: Nicholas Tindle <nick@ntindle.com>
Co-authored-by: k-boikov <64261260+k-boikov@users.noreply.github.com>
Co-authored-by: Richard Beales <rich@richbeales.net>
This commit is contained in:
Robin Richtsfeld
2023-05-22 21:53:31 +02:00
committed by GitHub
parent 3e24d312d3
commit 77ee9f8119
2 changed files with 3 additions and 4 deletions

View File

@@ -75,14 +75,13 @@ Needs improvement.
Not what I need."""
# TODO: add questions above, to distract it even more.
command = f"{sys.executable} -m autogpt"
command = [sys.executable, "-m", "autogpt"]
process = subprocess.Popen(
command,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
shell=True,
)
stdout_output, stderr_output = process.communicate(input_data.encode())