1. Armin Rigo
  2. cpython-withatomic


Ned Deily  committed 911d0a7

Remove spurious copy of Mac/IDLE/idlemain.py left over from
conversion from Python 2 build process. The correct version
is in Mac/IDLE/IDLE.app/Contents/Resources/

  • Participants
  • Parent commits 4845476
  • Branches default

Comments (0)

Files changed (1)

File Mac/IDLE/idlemain.py

  • Ignore whitespace
-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.
-# 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)
-if sys.executable.endswith('-32'):
-    sys.executable = os.path.join(sys.prefix, 'bin', 'python-32')
-    sys.executable = os.path.join(sys.prefix, 'bin', 'python')
-# Look for the -psn argument that the launcher adds and remove it, it will
-# only confuse the IDLE startup code.
-for idx, value in enumerate(sys.argv):
-    if value.startswith('-psn_'):
-        del sys.argv[idx]
-        break
-if __name__ == '__main__':
-    main()