azure_functions_worker/utils/dependency.py [96:116]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def use_worker_dependencies(cls):
        """Switch the sys.path and ensure the worker imports are loaded from
        Worker's dependenciess.

        This will not affect already imported namespaces, but will clear out
        the module cache and ensure the upcoming modules are loaded from
        worker's dependency path.
        """

        # The following log line will not show up in core tools but should
        # work in kusto since core tools only collects gRPC logs. This function
        # is executed even before the gRPC logging channel is ready.
        logger.info('Applying use_worker_dependencies:'
                    ' worker_dependencies: %s,'
                    ' customer_dependencies: %s,'
                    ' working_directory: %s', cls.worker_deps_path,
                    cls.cx_deps_path, cls.cx_working_dir)

        cls._remove_from_sys_path(cls.cx_deps_path)
        cls._remove_from_sys_path(cls.cx_working_dir)
        cls._add_to_sys_path(cls.worker_deps_path, True)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



proxy_worker/utils/dependency.py [80:100]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def use_worker_dependencies(cls):
        """Switch the sys.path and ensure the worker imports are loaded from
        Worker's dependenciess.

        This will not affect already imported namespaces, but will clear out
        the module cache and ensure the upcoming modules are loaded from
        worker's dependency path.
        """

        # The following log line will not show up in core tools but should
        # work in kusto since core tools only collects gRPC logs. This function
        # is executed even before the gRPC logging channel is ready.
        logger.info('Applying use_worker_dependencies:'
                    ' worker_dependencies: %s,'
                    ' customer_dependencies: %s,'
                    ' working_directory: %s', cls.worker_deps_path,
                    cls.cx_deps_path, cls.cx_working_dir)

        cls._remove_from_sys_path(cls.cx_deps_path)
        cls._remove_from_sys_path(cls.cx_working_dir)
        cls._add_to_sys_path(cls.worker_deps_path, True)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



