Browse Source

Paths

pull/167/merge
Jure Šorn 2 weeks ago
parent
commit
281daba57c
3 changed files with 5 additions and 5 deletions
  1. 2
      README.md
  2. 6
      index.html
  3. 2
      web/script_2.js

2
README.md

@ -1632,7 +1632,7 @@ from pathlib import Path
```
```python
<str> = os.getcwd() # Returns shell's working dir unless changed.
<str> = os.getcwd() # Returns working dir. Starts as shell's $PWD.
<str> = os.path.join(<path>, ...) # Joins two or more pathname components.
<str> = os.path.realpath(<path>) # Resolves symlinks and calls path.abspath().
```

6
index.html

@ -54,7 +54,7 @@
<body>
<header>
<aside>September 8, 2024</aside>
<aside>September 13, 2024</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</header>
@ -1383,7 +1383,7 @@ p.add_argument(<span class="hljs-string">'&lt;name&gt;'</span>, type=&lt;type&gt
<span class="hljs-keyword">from</span> pathlib <span class="hljs-keyword">import</span> Path
</code></pre></div>
<pre><code class="python language-python hljs">&lt;str&gt; = os.getcwd() <span class="hljs-comment"># Returns shell's working dir unless changed.</span>
<pre><code class="python language-python hljs">&lt;str&gt; = os.getcwd() <span class="hljs-comment"># Returns working dir. Starts as shell's $PWD.</span>
&lt;str&gt; = os.path.join(&lt;path&gt;, ...) <span class="hljs-comment"># Joins two or more pathname components.</span>
&lt;str&gt; = os.path.realpath(&lt;path&gt;) <span class="hljs-comment"># Resolves symlinks and calls path.abspath().</span>
</code></pre>
@ -2931,7 +2931,7 @@ $ deactivate <span class="hljs-comment"># Deactivates the active
<footer>
<aside>September 8, 2024</aside>
<aside>September 13, 2024</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</footer>

2
web/script_2.js

@ -23,7 +23,7 @@ const TOC_MOBILE =
' <a href="#ducktypes">Duck_Types</a>, <a href="#enum">Enum</a>, <a href="#exceptions">Except</a>],\n' +
' <strong><span class="hljs-string">\'4. System\'</span></strong>: [<a href="#exit">Exit</a>, <a href="#print">Print</a>, <a href="#input">Input</a>,\n' +
' <a href="#commandlinearguments">Command_Line_Arguments</a>,\n' +
' <a href="#open">Open</a>, <a href="#paths">Path</a>, <a href="#oscommands">OS_Commands</a>],\n' +
' <a href="#open">Open</a>, <a href="#paths">Paths</a>, <a href="#oscommands">OS_Commands</a>],\n' +
' <strong><span class="hljs-string">\'5. Data\'</span></strong>: [<a href="#json">JSON</a>, <a href="#pickle">Pickle</a>, <a href="#csv">CSV</a>, <a href="#sqlite">SQLite</a>,\n' +
' <a href="#bytes">Bytes</a>, <a href="#struct">Struct</a>, <a href="#array">Array</a>,\n' +
' <a href="#memoryview">Memory_View</a>, <a href="#deque">Deque</a>],\n' +

Loading…
Cancel
Save