def get_mock_dir(*subdirs, **kwargs):
 environ = (kwargs.get('environ') or os.environ)
 path = os.path.join(environ['MOCK_HADOOP_TMP'], *subdirs)
 if (not os.path.exists(path)):
  os.makedirs(os.path.abspath(path))
 return path

def get_mock_dir ( * subdirs , ** kwargs ) : environ = ( kwargs . get ( 'environ' ) or os . environ ) path = os . path . join ( environ [ 'MOCK_HADOOP_TMP' ] , * subdirs ) if ( not os . path . exists ( path ) ) : os . makedirs ( os . path . abspath ( path ) ) return path
get a directory within $mock_hadoop_tmp .