old_contents: import sys
  sys.path.insert(0,'..')
  import os
  d = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
  if d == 'scipy_distutils':
      execfile('setup_scipy_distutils.py')
  else:
      os.system('cd .. && ln -s %s scipy_distutils' % (d))
      execfile('setup_scipy_distutils.py')
      os.system('cd .. && rm -f scipy_distutils')
  
new_contents: import sys
  sys.path.insert(0,'..')
  import os
  d = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
  if d == 'scipy_distutils':
      import scipy_distutils
      del sys.path[0]
      execfile('setup_scipy_distutils.py')
  else:
      os.system('cd .. && ln -s %s scipy_distutils' % (d))
      import scipy_distutils
      del sys.path[0]
      execfile('setup_scipy_distutils.py')
      os.system('cd .. && rm -f scipy_distutils')
  
subject: Clean up sys.path after scipy_distutils has been imported.