Skip to content

Commit 8f2db41

Browse files
authored
gh-133503 Update compileall.rst's documentation of -s and -p for clarity
1 parent 96905bd commit 8f2db41

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/library/compileall.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ compile Python sources.
6262
recorded in the ``.pyc`` files.
6363
Cannot be combined with ``-d``.
6464

65+
.. warning::
66+
Removing the prefix makes paths relative to it.
67+
68+
.. note::
69+
- ``-s`` and ``-p`` can be used simultaneously.
70+
- ``-p /`` can be used to make the path absolute.
71+
6572
.. option:: -x regex
6673

6774
regex is used to search the full path to each file considered for

0 commit comments

Comments
 (0)