pub fn create_venv2(py_alias: &Path, lib_path: &Path, name: &str) -> Result<(), Box<dyn Error>> {
    // While creating the lib path, we're creating the __pypackages__ structure.
    let output = Command::new(py_alias)
        .args(&["-m", "venv", name])
        .current_dir(lib_path.join("../"))
        .output()?;
    util::check_command_output(&output, "creating virtual environment");

    Ok(())
}
// todo: DRY for using a path instead of str. use impl Into<PathBuf> ?
DRY for using a path instead of str.
DRY for using a path instead of str .
pub fn create_venv2(py_alias: &Path, lib_path: &Path, name: &str) -> Result<(), Box<dyn Error>> {
    // While creating the lib path, we're creating the __pypackages__ structure.
    let output = Command::new(py_alias)
        .args(&["-m", "venv", name])
        .current_dir(lib_path.join("../"))
        .output()?;
    util::check_command_output(&output, "creating virtual environment");
    Ok(())
}
pub fn create_venv2 ( py_alias : & Path , lib_path : & Path , name : & str ) -> Result < ( ) , Box < dyn Error > > { // While creating the lib path, we're creating the __pypackages__ structure. let output = Command :: new ( py_alias ) . args ( & [ " " , " " , name ] ) . current_dir ( lib_path . join ( " " ) ) . output ( ) ? ; util :: check_command_output ( & output , " " ) ; Ok ( ( ) ) }
todo: DRY for using a path instead of str.
todo : DRY for using a path instead of str .
py_alias
&Path
lib_path
&Path
name
&str
py_alias
&Path
lib_path
&Path
name
&str