mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
[3.14] gh-133503: clarify compileall -s/-p
docs (GH-134756) (#134997)
gh-133503: clarify `compileall -s/-p` docs (GH-134756)
(cherry picked from commit fe6f8a3619
)
Co-authored-by: Rihaan Meher <meherrihaan@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
parent
df7247a380
commit
5d07d16d45
1 changed files with 10 additions and 3 deletions
|
@ -56,11 +56,18 @@ compile Python sources.
|
|||
executed.
|
||||
|
||||
.. option:: -s strip_prefix
|
||||
|
||||
Remove the given prefix from paths recorded in the ``.pyc`` files.
|
||||
Paths are made relative to the prefix.
|
||||
|
||||
This option can be used with ``-p`` but not with ``-d``.
|
||||
|
||||
.. option:: -p prepend_prefix
|
||||
|
||||
Remove (``-s``) or append (``-p``) the given prefix of paths
|
||||
recorded in the ``.pyc`` files.
|
||||
Cannot be combined with ``-d``.
|
||||
Prepend the given prefix to paths recorded in the ``.pyc`` files.
|
||||
Use ``-p /`` to make the paths absolute.
|
||||
|
||||
This option can be used with ``-s`` but not with ``-d``.
|
||||
|
||||
.. option:: -x regex
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue