Permalink
Browse files

Add example for %pwd magic command.

  • Loading branch information...
1 parent e372c2f commit c377a7c0450f005eb7ca5619ef18c31a2d57376f @08saikiranreddy 08saikiranreddy committed with Feb 14, 2011
Showing with 10 additions and 1 deletion.
  1. +10 −1 IPython/core/magic.py
View
@@ -2605,7 +2605,16 @@ def magic_rehashx(self, parameter_s = ''):
os.chdir(savedir)
def magic_pwd(self, parameter_s = ''):
- """Return the current working directory path."""
+ """Return the current working directory path.
+
+ Example
+ -------
+
+ ::
+
+ In [9]: pwd
+ Out[9]: '/home/tsuser/sprint/ipython'
+ """
return os.getcwd()
def magic_cd(self, parameter_s=''):

0 comments on commit c377a7c

Please sign in to comment.