Lines Matching refs:sys
61 import sys
67 PREFIXES = [sys.prefix, sys.exec_prefix]
90 for m in sys.modules.values():
106 for dir in sys.path:
114 sys.path[:] = L
121 for dir in sys.path:
157 sys.path.append(dir)
160 print >>sys.stderr, "Error processing line {:d} of {}:\n".format(
162 for record in traceback.format_exception(*sys.exc_info()):
164 print >>sys.stderr, ' '+line
165 print >>sys.stderr, "\nRemainder of file ignored"
182 sys.path.append(sitedir) # Add path component
206 if sys.flags.no_user_site:
249 if sys.platform == 'darwin':
288 if sys.platform in ('os2emx', 'riscos'):
292 "python" + sys.version[:3],
316 dllpath = os.path.join(sys.prefix, "Lib", "lib-dynload")
348 sys.stdin.close()
419 __builtin__.copyright = _Printer("copyright", sys.copyright)
420 if sys.platform[:4] == 'java':
455 if sys.platform == 'win32':
483 sys.setdefaultencoding(encoding) # Needs Python Unicode build !
493 if sys.flags.verbose:
494 sys.excepthook(*sys.exc_info())
496 print >>sys.stderr, \
507 if sys.flags.verbose:
508 sys.excepthook(*sys.exc_info())
510 print>>sys.stderr, \
523 if sys.platform == 'os2emx':
536 if hasattr(sys, "setdefaultencoding"):
537 del sys.setdefaultencoding
556 args = sys.argv[1:]
559 for dir in sys.path:
567 sys.exit(0)
578 sys.exit(0)
580 sys.exit(1)
582 sys.exit(2)
584 sys.exit(3)
587 print textwrap.dedent(help % (sys.argv[0], os.pathsep))
588 sys.exit(10)