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:

committed by
Adam J. Stewart

parent
16fb10bc7e
commit
8285a1778f
@@ -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:
|
||||
|
Reference in New Issue
Block a user