code: def path_locations(home_dir):
      
      # XXX: We'd use distutils.sysconfig.get_python_inc/lib but its
      # prefix arg is broken: http://bugs.python.org/issue3386
      if sys.platform == 'win32':
          # Windows has lots of problems with executables with spaces in
          # the name; this function will remove them (using the ~1
          # format):
          mkdir(home_dir)
          if ' ' in home_dir:
              try:
                  import win32api
              except ImportError:
                  print 'Error: the path "%s" has a space in it' % home_dir
                  print 'To handle these kinds of paths, the win32api module must be installed:'
                  print '  http://sourceforge.net/projects/pywin32/'
                  sys.exit(3)
              home_dir = win32api.GetShortPathName(home_dir)
          lib_dir = join(home_dir, 'Lib')
          inc_dir = join(home_dir, 'Include')
          bin_dir = join(home_dir, 'Scripts')
      elif is_jython:
          lib_dir = join(home_dir, 'Lib')
          inc_dir = join(home_dir, 'Include')
          bin_dir = join(home_dir, 'bin')
      else:
          lib_dir = join(home_dir, 'lib', py_version)
          inc_dir = join(home_dir, 'include', py_version)
          bin_dir = join(home_dir, 'bin')
      return home_dir, lib_dir, inc_dir, bin_dir
docs: Return the path locations for the environment (where libraries are,
      where scripts go, etc)