Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    import sh
    git = sh.Command("/usr/bin/git")
the Command object takes a full path, but you can use it together with sh's "which":

    import sh
    git = sh.Command(sh.which("git"))


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: