Skip to content

Commit 2255874

Browse files
committed
Path
1 parent c7565ba commit 2255874

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,6 +1641,7 @@ from pathlib import Path
16411641
<Path> = Path() # Returns relative cwd. Also Path('.').
16421642
<Path> = Path.cwd() # Returns absolute cwd. Also Path().resolve().
16431643
<Path> = <Path>.resolve() # Returns absolute Path without symlinks.
1644+
<Path> = Path.home() # Returns user's home directory.
16441645
```
16451646

16461647
```python

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,7 @@
15191519
<pre><code class="python language-python hljs">&lt;Path&gt; = Path() <span class="hljs-comment"># Returns relative cwd. Also Path('.').</span>
15201520
&lt;Path&gt; = Path.cwd() <span class="hljs-comment"># Returns absolute cwd. Also Path().resolve().</span>
15211521
&lt;Path&gt; = &lt;Path&gt;.resolve() <span class="hljs-comment"># Returns absolute Path without symlinks.</span>
1522+
&lt;Path&gt; = Path.home() <span class="hljs-comment"># Returns user's home directory.</span>
15221523
</code></pre>
15231524
<pre><code class="python language-python hljs">&lt;Path&gt; = &lt;Path&gt;.parent <span class="hljs-comment"># Returns Path without final component.</span>
15241525
&lt;str&gt; = &lt;Path&gt;.name <span class="hljs-comment"># Returns final component as a string.</span>

0 commit comments

Comments
 (0)