def _directory_was_created_by_installer()

in scripts/ebcli_installer.py [0:0]


def _directory_was_created_by_installer(virtualenv_directory):
    """
    Function checks whether `virtualenv_directory` was previously created
    by this script.

    :param virtualenv_directory: The directory where the EBCLI and its
                                 artifacts will be installed.
    :return: Boolean indicating whether `virtualenv_directory` was created
             by this script or not.
    """
    return os.path.exists(
        os.path.join(
            virtualenv_directory,
            EBCLI_INSTALLER_STAMP
        )
    )