extend Prefix class with join() member to support dynamic directories (#8329)

* extend Prefix class with join() member to support dynamic directories

* add more tests for Prefix.join()

* more tests for Prefix.join()

* add docstring

* add example to docstring of Prefix class

* cleanup Prefix.join() tests

* use Prefix.join() in Packaging Guide
This commit is contained in:
Denis Davydov
2018-06-01 14:16:09 +02:00
committed by Adam J. Stewart
parent 16fb10bc7e
commit 8285a1778f
3 changed files with 44 additions and 2 deletions

View File

@@ -2763,11 +2763,11 @@ Prefix Attribute Location
Of course, this only works if your file or directory is a valid Python
variable name. If your file or directory contains dashes or dots, use
``join_path`` instead:
``join`` instead:
.. code-block:: python
join_path(prefix.lib, 'libz.a')
prefix.lib.join('libz.a')
.. _spec-objects: