[Geany-Users] cmd window problem

Lex Trotman elextr at xxxxx
Tue Sep 24 11:46:41 UTC 2013


On 24 September 2013 21:38, John Yeung <gallium.arsenide at gmail.com> wrote:

> On Tue, Sep 24, 2013 at 5:28 AM, JPM <jpmelian at gmail.com> wrote:
> > I mean the console window appear and disappear 0.1 second after and
> > I can not see any output.
> >
> > I think the console window should remain open.
> >
> > The python program only has one print line ( print "Hello world" ).
>
> I don't have time at the moment to test things out with Geany (it's
> not my usual editor), but I do have a suggestion:
>
> One thing to try, to keep a Python window open that is not staying
> open by other means, is to add an input statement at the end of your
> program.  If you're using Python 2, it would be a raw_input()
> statement; if using Python 3, just input().
>

The python command is actually run by a .bat script which has a pause after
the python command, so you shouldn't need anything in the program if the
python command runs.  It sounds more like as Johannes said, the command is
probably python.exe or some other error is preventing it finding python, so
the bat file is exiting immediately without doing the pause.

Cheers
Lex


>
> John
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/users/attachments/20130924/3e2f121a/attachment.html>


More information about the Users mailing list