def install_flex_agent():
    """
    install_flex_agent()

    Installs the FlexNet licensing agent needed to activate/retire licenses
    """
    if not os.path.exists('/Library/Preferences/FLEXnet Publisher'):
        try:
            print 'Installing FLEXnet Licensing agent'
            subprocess.call(
                "/usr/sbin/installer -pkg %s/Installers"
                '/\"Tableau FLEXNet.pkg\" -target /'
                % tableau_dir, shell=True
            )
        except Exception as e:
            print e % "An error occured while installing FLEXnet: %s"
            raise
dataset/ETHPy150Open facebook/IT-CPE/code/lib/scripts/rotate_tableau_license.py/install_flex_agent/swapped operands of `%`