home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_2834 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  770 b   |  30 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  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':
  14.     if 'HOMEPATH' in os.environ:
  15.         if 'HOMEDRIVE' in os.environ:
  16.             home = os.environ['HOMEDRIVE'] + os.environ['HOMEPATH']
  17.         else:
  18.             home = os.environ['HOMEPATH']
  19.     
  20.  
  21. pythonrc = os.path.join(home, '.pythonrc.py')
  22.  
  23. try:
  24.     f = open(pythonrc)
  25. except IOError:
  26.     pass
  27.  
  28. f.close()
  29. execfile(pythonrc)
  30.