Closed Freed-Wu closed 1 year ago
If users directly enter REPL from command line, $PYTHONSTARTUP will be sourced. However, XXpython_embed() will not source $PYTHONSTARTUP. Similarly, maybe we can provide a command line option -E to disable this behavior, just like python itself.
Looks like https://github.com/inducer/pudb/discussions/580#discussioncomment-4801771 is better. So I close this Pr now. Any thought can be commented to let me know :smile:
If users directly enter REPL from command line, $PYTHONSTARTUP will be sourced. However, XXpython_embed() will not source $PYTHONSTARTUP. Similarly, maybe we can provide a command line option -E to disable this behavior, just like python itself.