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')

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')

Clean up sys.path after scipy_distutils has been imported.
Clean up sys.path after scipy_distutils has been imported.

  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')
  
Clean up sys.path after scipy_distutils has been imported.
## Code Before:
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')

## Instruction:
Clean up sys.path after scipy_distutils has been imported.
## Code After:
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')
