mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #27851 from rallytime/bp-27771
Back-port #27771 to 2015.8
This commit is contained in:
commit
c95437a710
1 changed files with 18 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue