Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Doc/library/compileall.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,19 @@ compile Python sources.
executed.

.. option:: -s strip_prefix

.. warning::
Removing the prefix makes paths relative to it.

.. option:: -p prepend_prefix

Remove (``-s``) or append (``-p``) the given prefix of paths
recorded in the ``.pyc`` files.
Cannot be combined with ``-d``.

``-s`` and ``-p`` can be used simultaneously.
``-p /`` can be used to make the path absolute.

.. option:: -x regex

regex is used to search the full path to each file considered for
Expand Down
Loading