[Python-checkins] python/dist/src/Doc/tut tut.tex,1.156.4.1.2.19,1.156.4.1.2.20
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Mon, 07 Jul 2003 14:01:12 -0700
Update of /cvsroot/python/python/dist/src/Doc/tut
In directory sc8-pr-cvs1:/tmp/cvs-serv5663
Modified Files:
Tag: release22-maint
tut.tex
Log Message:
- explain about making Python scripts executable on Unix in more
detail
Index: tut.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tut/tut.tex,v
retrieving revision 1.156.4.1.2.19
retrieving revision 1.156.4.1.2.20
diff -C2 -d -r1.156.4.1.2.19 -r1.156.4.1.2.20
*** tut.tex 20 Jun 2003 14:28:05 -0000 1.156.4.1.2.19
--- tut.tex 7 Jul 2003 21:01:09 -0000 1.156.4.1.2.20
***************
*** 300,306 ****
(assuming that the interpreter is on the user's \envvar{PATH}) at the
beginning of the script and giving the file an executable mode. The
! \samp{\#!} must be the first two characters of the file. Note that
the hash, or pound, character, \character{\#}, is used to start a
comment in Python.
\subsection{The Interactive Startup File \label{startup}}
--- 300,317 ----
(assuming that the interpreter is on the user's \envvar{PATH}) at the
beginning of the script and giving the file an executable mode. The
! \samp{\#!} must be the first two characters of the file. On some
! platforms, this first line must end with a \UNIX-style line ending
! (\character{\e n}), not a Mac OS (\character{\e r}) or Windows
! (\character{\e r\e n}) line ending. Note that
the hash, or pound, character, \character{\#}, is used to start a
comment in Python.
+
+ The script can be given a executable mode, or permission, using the
+ \program{chmod} command:
+
+ \begin{verbatim}
+ % chmod +x myscript.py
+ \end{verbatim}
+
\subsection{The Interactive Startup File \label{startup}}