def clone_plugin(plugin):
 dirname = os.path.join(plugin_cache_dir(), os.path.basename(plugin))
 print ('Cloning %s -> %s' % (plugin, dirname))
 if os.path.exists(dirname):
  print ('Skip cloning of %s. Already there.' % plugin)
  return
 create_directory(dirname)
 subprocess.call(['git', 'clone', '--recursive', '--depth', '1', ('https://github.com/%s' % plugin), dirname])
 if (plugin == 'Valloric/YouCompleteMe'):
  subprocess.call(os.path.join(dirname, './install.sh'), cwd=dirname)

def clone_plugin ( plugin ) : dirname = os . path . join ( plugin_cache_dir ( ) , os . path . basename ( plugin ) ) print ( 'Cloning %s -> %s' % ( plugin , dirname ) ) if os . path . exists ( dirname ) : print ( 'Skip cloning of %s. Already there.' % plugin ) return create_directory ( dirname ) subprocess . call ( [ 'git' , 'clone' , '--recursive' , '--depth' , '1' , ( 'https://github.com/%s' % plugin ) , dirname ] ) if ( plugin == 'Valloric/YouCompleteMe' ) : subprocess . call ( os . path . join ( dirname , './install.sh' ) , cwd = dirname )
clone the given plugin into our plugin directory .