def sbot_executable():
gsettings=load_gsettings()<EOL>venv = gsettings.get_string('<STR_LIT>')<EOL>if venv == '<STR_LIT>':<EOL><INDENT>sbot = which('<STR_LIT>')<EOL><DEDENT>elif venv == '<STR_LIT>':<EOL><INDENT>env_venv = os.environ.get('<STR_LIT>')<EOL>if not env_venv:<EOL><INDENT>return which('<STR_LIT>')<EOL><DEDENT>for p in os.environ['<STR_LIT>'].split(os.path.pathsep):<EOL><INDENT>sbot='<STR_LIT>' % p<EOL>if not p.startswith(env_venv) and os.path.isfile(sbot):<EOL><INDENT>return sbot<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>sbot = os.path.join(venv, '<STR_LIT>')<EOL>if not os.path.isfile(sbot):<EOL><INDENT>print('<STR_LIT>')<EOL>sbot = which('<STR_LIT>')<EOL><DEDENT><DEDENT>return os.path.realpath(sbot)<EOL>
Find shoebot executable