add doc for path

This commit is contained in:
Prodesire 2017-12-14 20:22:15 +08:00
parent cb9a93790f
commit c98cf978bf
2 changed files with 11 additions and 0 deletions

View File

@ -30,6 +30,7 @@ Content
list list
misc misc
network network
path
request request
set set
string string

10
docs/path.rst Normal file
View File

@ -0,0 +1,10 @@
Path
----
.. py:function:: pydu.path.cd(path)
Context manager for cd the given path.
>>> from pydu.path import cd
>>> with cd('test'):
... pass