-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stdout/stderr output isn't flushed out by dotenv run
#137
Comments
@venthur - let me know if you have any thoughts on this? I'm not too sure, what are the fundamental differences are, I'm not particular interested in changing the current code, unless I understand it fully or until someone else able to explain it better. |
venthur
added a commit
to venthur/python-dotenv
that referenced
this issue
Oct 15, 2018
The piping of stdout/err/in was a mistake, I leave the values to |
theskumar
pushed a commit
that referenced
this issue
Oct 31, 2018
johnbergvall
pushed a commit
to johnbergvall/python-dotenv
that referenced
this issue
Aug 13, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example, running django web server normally sends continuous output to stdout/stderr; however, via python-dotenv it doesn't show the server output. This may have something to do with the fact that python-dotenv is using
subprocess.Popen
and thenp.communicate()
(which collects all the output when the process returns).Here's a quick reproducing script, and output:
and the output:
As a reference / possible solution, we can look at python-dotenv-run code which uses either
ctx.exit(subprocess.call([command] + list(args), shell=True))
on windows oros.execlp(command, command, *args)
otherwise.p.s: I'll be happy to submit a PR if one of the solutions above is acceptable.
The text was updated successfully, but these errors were encountered: