]> granicus.if.org Git - python/commitdiff
Use "$@" to pass arguments to Python in stead of "${1}". This passes all
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 18 Feb 2003 11:24:31 +0000 (11:24 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 18 Feb 2003 11:24:31 +0000 (11:24 +0000)
arguments, and also does the right thing for the no argument case.

Lib/plat-mac/bundlebuilder.py

index 9d50f9116f5066a0b5ff2aa857701e04d093fc39..9959c9598d1e81d193dd78ed765523148c9558ed 100755 (executable)
@@ -263,7 +263,7 @@ resdir=$(dirname "${execdir}")/Resources
 main="${resdir}/%(mainprogram)s"
 PYTHONPATH="$resdir"
 export PYTHONPATH
-exec "${executable}" "${main}" "${1}"
+exec "${executable}" "${main}" "$@"
 """