Re: python question

First: I'm assuming that you're talking about clicking on your .py files, not python.exe itself.  If Python.exe itself is immediately closing you have a different class of problem.

You need to open a command prompt and run Python from there.  Python myfile.py.  If Python isn't on your path, you may need to go into control panel and add it.  This will print the error.  The problem you're having is that if a program which uses the terminal immediately exits, it's closing before you can read it.

I always run Python from the terminal manually, and have changed the Python file association to Notepad++.  You can only get away with clicking on .py files to run them as long as everything is 100% okay.  Otherwise you get something like this when it errors and can't tell what's wrong without already being in a terminal, so it's kinda useless to have .py files associated with python.exe.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : arturminyazev via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : arturminyazev via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : arturminyazev via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector

Reply via email to