[Python-checkins] python/dist/src/Lib/plat-mac bundlebuilder.py,1.23,1.24

jvr@users.sourceforge.net jvr@users.sourceforge.net
Fri, 21 Mar 2003 14:22:21 -0800


Update of /cvsroot/python/python/dist/src/Lib/plat-mac
In directory sc8-pr-cvs1:/tmp/cvs-serv26423

Modified Files:
	bundlebuilder.py 
Log Message:
use os.path.realpath() instead of os.readlink()

Index: bundlebuilder.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/bundlebuilder.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** bundlebuilder.py	21 Mar 2003 11:32:37 -0000	1.23
--- bundlebuilder.py	21 Mar 2003 22:22:19 -0000	1.24
***************
*** 444,450 ****
  				hashbang = "/usr/bin/python"
  			else:
! 				hashbang = sys.executable
! 				while os.path.islink(hashbang):
! 					hashbang = os.readlink(hashbang)
  			standalone = self.standalone
  			open(bootstrappath, "w").write(BOOTSTRAP_SCRIPT % locals())
--- 444,448 ----
  				hashbang = "/usr/bin/python"
  			else:
! 				hashbang = os.path.realpath(sys.executable)
  			standalone = self.standalone
  			open(bootstrappath, "w").write(BOOTSTRAP_SCRIPT % locals())