def get_testenv():
 env = os.environ.copy()
 env['PYTHONPATH'] = get_pythonpath()
 return env

def get_testenv ( ) : env = os . environ . copy ( ) env [ 'PYTHONPATH' ] = get_pythonpath ( ) return env
return a os environment dict suitable to fork processes that need to import this installation of scrapy .