code: func SetChaincodesPath(path string) {
  	if s, err := os.Stat(path); err != nil {
  		if os.IsNotExist(err) {
  			if err := os.Mkdir(path, 0755); err != nil {
  				panic(fmt.Sprintf("Could not create chaincodes install path: %s", err))
  			}
  		} else {
  			panic(fmt.Sprintf("Could not stat chaincodes install path: %s", err))
  		}
  	} else if !s.IsDir() {
  		panic(fmt.Errorf("chaincode path exists but not a dir: %s", path))
  	}
  
  	chaincodeInstallPath = path
  }
docs: // SetChaincodesPath sets the chaincode path for this peer