|
@ -1518,8 +1518,8 @@ value = args.<name> |
|
|
</code></pre> |
|
|
</code></pre> |
|
|
<pre><code class="python language-python hljs"><Path> = Path() <span class="hljs-comment"># Returns relative cwd. Also Path('.').</span> |
|
|
<pre><code class="python language-python hljs"><Path> = Path() <span class="hljs-comment"># Returns relative cwd. Also Path('.').</span> |
|
|
<Path> = Path.cwd() <span class="hljs-comment"># Returns absolute cwd. Also Path().resolve().</span> |
|
|
<Path> = Path.cwd() <span class="hljs-comment"># Returns absolute cwd. Also Path().resolve().</span> |
|
|
<Path> = <Path>.resolve() <span class="hljs-comment"># Returns absolute Path without symlinks.</span> |
|
|
|
|
|
<Path> = Path.home() <span class="hljs-comment"># Returns user's home directory.</span> |
|
|
<Path> = Path.home() <span class="hljs-comment"># Returns user's home directory.</span> |
|
|
|
|
|
<Path> = Path(__file__).resolve() <span class="hljs-comment"># Returns script's path if cwd wasn't changed.</span> |
|
|
</code></pre> |
|
|
</code></pre> |
|
|
<pre><code class="python language-python hljs"><Path> = <Path>.parent <span class="hljs-comment"># Returns Path without final component.</span> |
|
|
<pre><code class="python language-python hljs"><Path> = <Path>.parent <span class="hljs-comment"># Returns Path without final component.</span> |
|
|
<str> = <Path>.name <span class="hljs-comment"># Returns final component as a string.</span> |
|
|
<str> = <Path>.name <span class="hljs-comment"># Returns final component as a string.</span> |
|
|