Merge pull request #27851 from rallytime/bp-27771

Back-port #27771 to 2015.8
This commit is contained in:
Nicole Thomas 2015-10-12 09:31:06 -06:00
commit c95437a710

View File

@ -279,6 +279,9 @@ def get_site_packages(venv):
'''
Returns the path to the site-packages directory inside a virtualenv
venv
Path to the virtualenv.
CLI Example:
.. code-block:: bash
@ -303,6 +306,13 @@ def get_resource_path(venv, package_or_requirement, resource_name):
'''
Returns the path to a resource of a package or a distribution inside a virtualenv
venv
Path to the virtualenv.
package_or_requirement
Name of the package where the resource resides in.
resource_name
Name of the resource of which the path is to be returned.
CLI Example:
.. code-block:: bash
@ -330,6 +340,14 @@ def get_resource_content(venv, package_or_requirement, resource_name):
'''
Returns the content of a resource of a package or a distribution inside a virtualenv
venv
Path to the virtualenv.
package_or_requirement
Name of the package where the resource resides in.
resource_name
Name of the resource of which the content is to be returned.
CLI Example:
.. code-block:: bash