From 95d3053a00a4013c89184a44c06246049c141da0 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sat, 18 Jul 2009 00:38:53 -0400 Subject: [PATCH] be more clear about current working directory in command line examples --- your-first-python-program.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/your-first-python-program.html b/your-first-python-program.html index 6418059..3a291bf 100755 --- a/your-first-python-program.html +++ b/your-first-python-program.html @@ -56,12 +56,12 @@ if __name__ == '__main__': print(approximate_size(1000000000000))

Now let’s run this program on the command line. On Windows, it will look something like this:

-c:\home\diveintopython3> c:\python30\python.exe humansize.py
+c:\home\diveintopython3\examples> c:\python31\python.exe humansize.py
 1.0 TB
 931.3 GiB

On Mac OS X or Linux, it would look something like this:

-you@localhost:~$ python3 humansize.py
+you@localhost:~/diveintopython3/examples$ python3 humansize.py
 1.0 TB
 931.3 GiB