be more clear about current working directory in command line examples

This commit is contained in:
Mark Pilgrim
2009-07-18 00:38:53 -04:00
parent fe35f3a2a9
commit 95d3053a00
+2 -2
View File
@@ -56,12 +56,12 @@ if __name__ == '__main__':
print(approximate_size(1000000000000))</code></pre>
<p>Now let&#8217;s run this program on the command line. On Windows, it will look something like this:
<pre class='nd screen'>
<samp class=p>c:\home\diveintopython3> </samp><kbd>c:\python30\python.exe humansize.py</kbd>
<samp class=p>c:\home\diveintopython3\examples> </samp><kbd>c:\python31\python.exe humansize.py</kbd>
<samp>1.0 TB
931.3 GiB</samp></pre>
<p>On Mac OS X or Linux, it would look something like this:
<pre class='nd screen'>
<samp class=p>you@localhost:~$ </samp><kbd>python3 humansize.py</kbd>
<samp class=p>you@localhost:~/diveintopython3/examples$ </samp><kbd>python3 humansize.py</kbd>
<samp>1.0 TB
931.3 GiB</samp></pre>