Browse Source

Command execution

pull/42/head
Jure Šorn 5 years ago
parent
commit
ad9e30849c
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -1608,7 +1608,7 @@ Command Execution
-----------------
### Files and Directories
* **Paths can be either strings, Paths, or DirEntry objects.**
* **Functions report [OS related errors](#exceptions-1) by raising either OSError or one of its subclasses.**
* **Functions report OS related errors by raising either OSError or one of its [subclasses](#exceptions-1).**
```python
import os, shutil

2
index.html

@ -1461,7 +1461,7 @@ value = args.<name>
</code></pre>
<div><h2 id="commandexecution"><a href="#commandexecution" name="commandexecution">#</a>Command Execution</h2><div><h3 id="filesanddirectories">Files and Directories</h3><ul>
<li><strong>Paths can be either strings, Paths, or DirEntry objects.</strong></li>
<li><strong>Functions report <a href="#exceptions-1">OS related errors</a> by raising either OSError or one of its subclasses.</strong></li>
<li><strong>Functions report OS related errors by raising either OSError or one of its <a href="#exceptions-1">subclasses</a>.</strong></li>
</ul><pre><code class="python language-python hljs"><span class="hljs-keyword">import</span> os, shutil
&lt;str&gt; = os.getcwd() <span class="hljs-comment"># Returns the current working directory.</span>
os.chdir(&lt;path&gt;) <span class="hljs-comment"># Changes current working directory.</span>

Loading…
Cancel
Save