Skip .zshrc in console app

9 views
Skip to first unread message

Elliott Balsley

unread,
May 18, 2021, 3:16:25 AM5/18/21
to PyInstaller
When I make a text-only console app with PyInstaller, double-clicking the binary on macOS runs the contents of ~/.zshrc so the output looks cluttered.  Is there some way to avoid this so it starts with a blank console window?

I know I could use os.system('clear') at the top but there is a slight delay so you can see the text appear for a moment and then clear.

bwoodsend

unread,
May 19, 2021, 3:16:43 AM5/19/21
to PyInstaller

If there is, it’s via some OS configuration - not PyInstaller. It’s not normal for shell RC files to print anything. Would it be enough to edit your ~/.zshrc, find the noisy line and either remove it or append > /dev/null to it to silence it (may also require redirecting stderr to null too)?

Reply all
Reply to author
Forward
0 new messages