0
Je voudrais rediriger stderr
et stdout
vers des fichiers lorsqu'il est exécuté à l'intérieur de pythonw
. Comment puis-je déterminer si un script s'exécute en pythonw
ou en python
?Détermine si un script s'exécute dans pythonw?
Sur mon mac il est dit '/ System/Library/Frameworks/Python.framework/Versions/2.5/Ressources/Python.app/Contents/MacOS/Python' (ce qui est parfaitement logique) que j'exécute python ou pythonw. –
Le Mac n'a plus besoin de Pythonw (depuis 2.3). Pythonw n'est plus intéressant que pour les développeurs Windows. –