[Python-checkins] python/dist/src/Lib/plat-mac bgenlocations.py, 1.6, 1.7

jackjansen at users.sourceforge.net jackjansen at users.sourceforge.net
Thu Jul 15 17:06:10 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/plat-mac
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19900

Modified Files:
	bgenlocations.py 
Log Message:
Allow overriding of bgen pathnames in an optional module bgenlocationcustomize.
Editing of bgenlocations.py isn't easy if your Python was supplied by Apple.


Index: bgenlocations.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/bgenlocations.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** bgenlocations.py	19 Nov 2003 16:12:08 -0000	1.6
--- bgenlocations.py	15 Jul 2004 15:06:07 -0000	1.7
***************
*** 32,35 ****
--- 32,43 ----
  CREATOR="CWIE"
  
+ # The previous definitions can be overriden by creating a module 
+ # bgenlocationscustomize.py and putting it in site-packages (or anywere else 
+ # on sys.path, actually)
+ try:
+ 	from bgenlocationscustomize import *
+ except ImportError:
+ 	pass
+ 
  if not os.path.exists(BGENDIR):
      raise Error, "Please fix bgenlocations.py, BGENDIR does not exist: %s" % BGENDIR



More information about the Python-checkins mailing list