mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-31 17:17:43 -05:00
Use pathlib in `sys.path` manipulation examples
This commit is contained in:
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']
|
||||
|
||||
|
||||
Reference in new issue
Block a user