home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_262 / user.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2011-09-09  |  758 b   |  28 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.7)
  3.  
  4. from warnings import warnpy3k
  5. warnpy3k('the user module has been removed in Python 3.0', stacklevel = 2)
  6. del warnpy3k
  7. import os
  8. home = os.curdir
  9. if 'HOME' in os.environ:
  10.     home = os.environ['HOME']
  11. elif os.name == 'posix':
  12.     home = os.path.expanduser('~/')
  13. elif os.name == 'nt' and 'HOMEPATH' in os.environ:
  14.     if 'HOMEDRIVE' in os.environ:
  15.         home = os.environ['HOMEDRIVE'] + os.environ['HOMEPATH']
  16.     else:
  17.         home = os.environ['HOMEPATH']
  18.  
  19. pythonrc = os.path.join(home, '.pythonrc.py')
  20.  
  21. try:
  22.     f = open(pythonrc)
  23. except IOError:
  24.     pass
  25.  
  26. f.close()
  27. execfile(pythonrc)
  28.