# Displaying console in exported executable output

**URL:** <https://discourse.processing.org/t/displaying-console-in-exported-executable-output/15816>\
**Category:** Processing.py\
**Created:** [November 25, 2019, 9:12pm UTC](https://discourse.processing.org/t/displaying-console-in-exported-executable-output/15816 "2019-11-25T21:12:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![katesfb](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@katesfb](https://discourse.processing.org/u/katesfb)\
**Post date:** [November 25, 2019, 9:12pm UTC](https://discourse.processing.org/t/displaying-console-in-exported-executable-output/15816/1 "2019-11-25T21:12:16Z")

</div>

Hi,  
I have a python mode script that has no setup() or draw() functions which is fine as 99% of the time the output is not viewed. This script has been exported to a 32 bit executable running on Win 10 and runs well however occasionally it is useful to be able to see the console output (e.g. error tracking) so is it possible to view the console window output when running a python mode script as an exported executable?

Any help is much appreciated.

Cheers.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [November 26, 2019, 4:08am UTC](https://discourse.processing.org/t/displaying-console-in-exported-executable-output/15816/2 "2019-11-26T04:08:17Z")

</div>

> [@katesfb](#):
>
> So is it possible to view the console window output when running a Python Mode script as an exported executable?

PDE (Processing’s IDE) got its own console, which isn’t the same as the OS console 1.

I tried to redirect `print` to the real ` __stdout__ ` console but it didn’t work on the win console:  
`print >> sys. __stdout__ , 'Am I displayable?'`

But when I tried Git’s bash, everything got displayed there!

And no ` __stdout__ ` was needed. Vanilla `print` just works:  
`print 'Am I displayable?'`

And Git’s bash also works on exported Java Mode sketches!

Just be aware that Git’s bash, just like any Unix bash, we need to prefix current directory files w/ `./` before its name.

For example, if we wanna run the filename “Hints.exe” on current folder, we type in: ./Hints

Grab Git install from this site: [Git-Scm.com](http://Git-Scm.com)
