diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2006-05-19 18:17:31 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2006-05-19 18:17:31 (GMT) |
commit | bf91f78376f8df69ae6f943a4b38f1564232d3f2 (patch) | |
tree | 13757fd11d45fc173c3efeaa87936c9545071d11 /Mac | |
parent | 4eafe9ee4f37ad06f7688f23df07f9390f522fdc (diff) | |
download | cpython-bf91f78376f8df69ae6f943a4b38f1564232d3f2.zip cpython-bf91f78376f8df69ae6f943a4b38f1564232d3f2.tar.gz cpython-bf91f78376f8df69ae6f943a4b38f1564232d3f2.tar.bz2 |
* Change working directory to the users home
directory, that makes the file open/save
dialogs more useable.
* Don't use argv emulator, its not needed
for idle.
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/OSX/IDLE/idlemain.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Mac/OSX/IDLE/idlemain.py b/Mac/OSX/IDLE/idlemain.py index ace3950..eaebee8 100644 --- a/Mac/OSX/IDLE/idlemain.py +++ b/Mac/OSX/IDLE/idlemain.py @@ -1,7 +1,15 @@ -import argvemulator -from idlelib.PyShell import main +""" +Bootstrap script for IDLE as an application bundle. +""" import sys, os +from idlelib.PyShell import main + +# Change the current directory the user's home directory, that way we'll get +# a more useful default location in the open/save dialogs. +os.chdir(os.expanduser('~')) + + # Make sure sys.executable points to the python interpreter inside the # framework, instead of at the helper executable inside the application # bundle (the latter works, but doesn't allow access to the window server) @@ -14,6 +22,6 @@ for idx, value in enumerate(sys.argv): del sys.argv[idx] break -argvemulator.ArgvCollector().mainloop() +#argvemulator.ArgvCollector().mainloop() if __name__ == '__main__': main() |