mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #27851 from rallytime/bp-27771
Back-port #27771 to 2015.8
This commit is contained in:
commit
c95437a710
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user