[Python-bugs-list] [ python-Bugs-779151 ] genlocations.py only works for OS9 users and jack ;)
SourceForge.net
noreply@sourceforge.net
Mon, 28 Jul 2003 13:35:12 -0700
Bugs item #779151, was opened at 2003-07-28 16:35
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=779151&group_id=5470
Category: Macintosh
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Bob Ippolito (etrepum)
Assigned to: Jack Jansen (jackjansen)
Summary: genlocations.py only works for OS9 users and jack ;)
Initial Comment:
--- I'm inlining snippets of code from plat-mac/
bgenlocations.py ---
if sys.platform == 'mac':
# For MacPython we know where it is
def _pardir(p): return os.path.split(p)[0]
BGENDIR=os.path.join(sys.prefix, "Tools", "bgen",
"bgen")
else:
# for unix-Python we don't know, please set it yourself.
BGENDIR="/Users/jack/src/python/Tools/bgen/bgen"
With unix python using Jack's 2.3rc2 installer, BGENDIR
should be /Applications/MacPython-2.3/Extras/Tools/bgen
#
# Where to put the python definitions files. Note that, on
unix-Python,
# if you want to commit your changes to the CVS repository
this should refer to
# your source directory, not your installed directory.
#
if sys.platform == 'mac':
TOOLBOXDIR=os.path.join(sys.prefix, "Lib", "plat-mac",
"Carbon")
else:
TOOLBOXDIR="/Users/jack/src/python/Lib/plat-mac/
Carbon"
TOOLBOXDIR should point somewhere reasonable. maybe
os.path.expanduser('~/src/python/')... You should be able to
override this without editing your python installation. For
example, it could print a warning instead of raising an
exception.. look somewhere in sys.path for an override file,
etc.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=779151&group_id=5470