def venv_bin(name=None):  
if not hasattr(sys, "<STR_LIT>"):<EOL><INDENT>easy.error("<STR_LIT>" % (sys.executable,))<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>for bindir in ("<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>bindir = os.path.join(sys.prefix, bindir)<EOL>if os.path.exists(bindir):<EOL><INDENT>if name:<EOL><INDENT>bin_ext = os.path.splitext(sys.executable)[<NUM_LIT:1>] if sys.platform == '<STR_LIT:win32>' else '<STR_LIT>'<EOL>return os.path.join(bindir, name + bin_ext)<EOL><DEDENT>else:<EOL><INDENT>return bindir<EOL><DEDENT><DEDENT><DEDENT>easy.error("<STR_LIT>" % (sys.prefix,))<EOL>sys.exit(<NUM_LIT:1>)<EOL>
Get the directory for virtualenv stubs, or a full executable path
        if C{name} is provided.