def __ensure_gcloud():
if which('<STR_LIT>') is None:<EOL><INDENT>gcloud_path = os.path.join(os.path.expanduser('<STR_LIT>'),<EOL>'<STR_LIT>', '<STR_LIT>')<EOL>env_path = os.getenv('<STR_LIT>')<EOL>if os.path.isdir(gcloud_path):<EOL><INDENT>if env_path is not None:<EOL><INDENT>os.environ['<STR_LIT>'] = gcloud_path + os.pathsep + env_path<EOL><DEDENT>else:<EOL><INDENT>os.environ['<STR_LIT>'] = gcloud_path<EOL><DEDENT><DEDENT><DEDENT>
The *NIX installer is not guaranteed to add the google cloud sdk to the
    user's PATH (the Windows installer does). This ensures that if the default
    directory for the executables exists, it is added to the PATH for the
    duration of this package's use.