Skip to content

Commit 3bc9e44

Browse files
committed
Updated with expanded capability of cdsitepackages to cd to a subdir
1 parent d5bf7d4 commit 3bc9e44

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docsource/command_ref.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,16 @@ cdsitepackages
8484

8585
Because the exact path to the site-packages directory in the virtualenv depends on the
8686
version of Python, ``cdsitepackages`` is provided as a shortcut for ``cdvirtualenv
87-
lib/python${pyvers}/site-packages``.
87+
lib/python${pyvers}/site-packages``. An optional argument is also allowed, to specify
88+
a directory hierarchy within the ``site-packages`` directory to change into.
89+
90+
::
91+
$ workon pymotw
92+
$ echo $VIRTUAL_ENV
93+
/Users/dhellmann/.virtualenvs/pymotw
94+
$ cdsitepackages PyMOTW/bisect/
95+
$ pwd
96+
/Users/dhellmann/.virtualenvs/pymotw/lib/python2.6/site-packages/PyMOTW/bisect
8897

8998
===============
9099
Path Management

0 commit comments

Comments
 (0)