Mercurial > cpython-lru_cache-weakref
annotate Tools/scripts/idle @ 51330:ca423008fa4a legacy-trunk
#5144: document that PySys_SetArgv prepends the script directory (or the empty string) to sys.path.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Thu, 05 Feb 2009 10:37:07 +0000 |
| parents | 981fff7363b9 |
| children |
| rev | line source |
|---|---|
|
29437
179d5452bb9d
Put the main script for the new IDLE here.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
1 #! /usr/bin/env python |
|
179d5452bb9d
Put the main script for the new IDLE here.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
2 |
|
179d5452bb9d
Put the main script for the new IDLE here.
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
3 from idlelib.PyShell import main |
|
33074
981fff7363b9
[Patch #1005491 ] use __name__ == '__main__' in scripts
Andrew M. Kuchling <amk@amk.ca>
parents:
29437
diff
changeset
|
4 if __name__ == '__main__': |
|
981fff7363b9
[Patch #1005491 ] use __name__ == '__main__' in scripts
Andrew M. Kuchling <amk@amk.ca>
parents:
29437
diff
changeset
|
5 main() |
