Lines Matching defs:sys
4 import sys, os
11 # Make sure sys.executable points to the python interpreter inside the
34 # 3. IDLE script alters sys.argv and uses os.execve to replace itself with
38 # sys.executable may get set to an useless value.
47 # Reset sys.executable to its normal value, the actual path of
51 sys.executable = os.path.join(sys.prefix, 'bin', 'python%d.%d'%(sys.version_info[:2]))
53 # Remove any sys.path entries for the Resources dir in the IDLE.app bundle.
56 sys.path = [value for value in sys.path if
60 # by IDLE have a normal sys.executable.
65 for idx, value in enumerate(sys.argv):
67 del sys.argv[idx]