Use pathlib in `sys.path` manipulation examples

This commit is contained in:
Adam Turner committed 2024-11-03 22:58:19 +00:00
1 parent fbb23071bf
commit 1266c421be
4 files changed
+15 -9

No files matched your search

@@ -313,10 +313,10 @@ For example:
.. code-block:: python
import os
import sys
from pathlib import Path
sys.path.append(os.path.abspath("./_ext"))
sys.path.append(str(Path('_ext').resolve()))
extensions = ['todo']
@@ -169,10 +169,10 @@ For example:
.. code-block:: python
import os
import sys
from pathlib import Path
sys.path.append(os.path.abspath("./_ext"))
sys.path.append(str(Path('_ext').resolve()))
extensions = ['helloworld']