fdutils/selenium_util/settings.py
def after_update():
    """ call this function after an update to global fdutil.config.settings variable"""
    if HEADLESS:
        try:
            import pyvirtualdisplay
        except ImportError:
            print('#' * 80)
            print(
                'When doing Headless testing we expect to have pyvirtualdisplay to manage xvfb available and it is not')
            print('You can install it with "pip3 install pyvirtualdisplay"')
            print('#' * 80)
            raise

    if WEB_DRIVER_EXECUTABLES_PATH and WEB_DRIVER_EXECUTABLES_PATH not in os.environ['PATH']:
        os.environ['PATH'] += ';' + WEB_DRIVER_EXECUTABLES_PATH
 call this function after an update to global fdutil.config.settings variable
call this function after an update to global fdutil.config.settings variable
call this function after an update to global fdutil . config . settings variable
def after_update():
    if HEADLESS:
        try:
            import pyvirtualdisplay
        except ImportError:
            print('#' * 80)
            print(
                'When doing Headless testing we expect to have pyvirtualdisplay to manage xvfb available and it is not')
            print('You can install it with "pip3 install pyvirtualdisplay"')
            print('#' * 80)
            raise
    if WEB_DRIVER_EXECUTABLES_PATH and WEB_DRIVER_EXECUTABLES_PATH not in os.environ['PATH']:
        os.environ['PATH'] += ';' + WEB_DRIVER_EXECUTABLES_PATH
def after_update ( ) : if HEADLESS : try : import pyvirtualdisplay except ImportError : print ( '#' * 80 ) print ( 'When doing Headless testing we expect to have pyvirtualdisplay to manage xvfb available and it is not' ) print ( 'You can install it with "pip3 install pyvirtualdisplay"' ) print ( '#' * 80 ) raise if WEB_DRIVER_EXECUTABLES_PATH and WEB_DRIVER_EXECUTABLES_PATH not in os . environ [ 'PATH' ] : os . environ [ 'PATH' ] += ';' + WEB_DRIVER_EXECUTABLES_PATH
call this function after an update to global fdutil.config.settings variable
call this function after an update to global fdutil . config . settings variable
""" call this function after an update to global fdutil.config.settings variable"""