def get_deps_dir():
 frame = inspect.stack()[1]
 module = inspect.getmodule(frame[0])
 p = os.path.dirname(module.__file__)
 nesting_limit = 10
 index = 0
 while ('deps' not in os.listdir(p)):
  if ('.git' in os.listdir(p)):
   raise MissingDepsDirError(('Could not find a deps dir for git repo %s' % p))
  if (index >= nesting_limit):
   raise MissingDepsDirError(('Could not find a deps dir after looking %s parent directories' % nesting_limit))
  p = os.path.dirname(p)
  index += 1
 return os.path.join(p, 'deps')

def get_deps_dir ( ) : frame = inspect . stack ( ) [ 1 ] module = inspect . getmodule ( frame [ 0 ] ) p = os . path . dirname ( module . __file__ ) nesting_limit = 10 index = 0 while ( 'deps' not in os . listdir ( p ) ) : if ( '.git' in os . listdir ( p ) ) : raise MissingDepsDirError ( ( 'Could not find a deps dir for git repo %s' % p ) ) if ( index >= nesting_limit ) : raise MissingDepsDirError ( ( 'Could not find a deps dir after looking %s parent directories' % nesting_limit ) ) p = os . path . dirname ( p ) index += 1 return os . path . join ( p , 'deps' )
for a given test provider .