Ich versuche, die Umgebungsvariable PYTHONSTARTUP zu verwenden. Ich habe es unter "Arbeitsplatz" -> "Erweitert" usw. auf "c: \ python25 \ pythonstartup.py" eingestellt, und es scheint nicht zu funktionieren.PYTHONSTARTUP scheint nicht zu funktionieren
Eröffnung IDLE läuft nicht das Skript, obwohl sie die Variable erkannt:
>>> import os
>>> os.environ['PYTHONSTARTUP']
'c:\\python25\\pythonstartup.py'
>>>
Ich bin mit XP und Python 2.5.2. Ich möchte noch nicht auf 3.0 upgraden.
Dank
Sie müssen IDLE auch mit der Befehlszeilenoption -s starten (siehe http://docs.python.org/library/idle.html#command-line-usage). Ich habe keine Möglichkeit gefunden, diese Option dem IDLE-Startmenüeintrag unter Windows 7 hinzuzufügen. Daher habe ich meine eigene Verknüpfung wie folgt erstellt: C: \ Python27 \ pythonw.exe C: \ Python27 \ Lib \ idleLib \ Leerlauf.py -s – Sabuncu