************************************ Explicitly Manage Dependencies ************************************ Problem ======= You want to exclude or add dependencies to the list of streamed dependencies. Solution ======== To add dependencies, call the :py:meth:`add_dependency() ` method on the job. In this example, the name of the module is "MyLibrary" and the name of the file is "MyClass". Additionally, add the path to the directory where the dependency is located to the PYTHONPATH environment variable. .. literalinclude:: ..\..\..\code\HowTos\ManageDependencies.py :language: python :linenos: Discussion ========== Internally, the dependencies needed to run a task are automatically detected and the dependencies needed to run a task are automatically streamed. At times, additional control over this automatic behavior may be needed. For instance, client applications may not have a dependency on some required dependencies if they are using dependency injection or reflection to get types, so it will be necessary to send the dependencies manually. See Also ======== Reference """"""""" * :py:attr:`add_dependency `