Skip to content

Commit

Permalink
Merge eb93d14 into bcf7078
Browse files Browse the repository at this point in the history
  • Loading branch information
tbabej committed Jul 29, 2021
2 parents bcf7078 + eb93d14 commit 3bfa845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/local_machine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You can also use it as a *context manager*, so it behaves like ``pushd``/``popd`
>>> print "%s:%s" % (local.cwd, (ls | wc["-l"])())
d:\workspace\plumbum: 9

Finally, A more explicit and thread-safe way of running a command in a differet directory is using the ``.with_cwd()`` method:
Finally, A more explicit and thread-safe way of running a command in a different directory is using the ``.with_cwd()`` method:

>>> ls_in_docs = local.cmd.ls.with_cwd("docs")
>>> ls_in_docs()
Expand Down

0 comments on commit 3bfa845

Please sign in to comment.