[Bio] / ModelEditor / ModelEditor Repository:
ViewVC logotype

View of /ModelEditor/ModelEditor

Parent Directory Parent Directory | Revision Log Revision Log

Revision 1.11 - (download) (annotate)
Fri Apr 22 15:14:03 2005 UTC (14 years, 6 months ago) by efrank
Branch: MAIN
CVS Tags: before-dynamics-persistence, lwc, treatman-lastDay-0, preTreatmanDyn, HEAD
Changes since 1.10: +23 -2 lines

change ModelEditor (launcher script) to sniff for mac_wx_workaround and,
if found, use it to diddle PYPATH so that can run under Seed environment
where there's both bobThon and sys pyThon


# On some systems you must use pythonw to invoke wx apps and on others
# you don't.  Hide that via this script.

if [ .${RTARCH} = .mac ]; then

    # on mac, must use system python and distributed wxPython.  have
    # not been able to build succesfully ourselves.  but in Seed envrionment,
    # python must be rebuilt to get bob's callPerl to work.  So in Seed
    # environment, paths etc., are setup to use Seeds own build of py,
    # which breaks wxPy which breaks the ModelEditor (but not Kah in total)
    # So, in Seed env, there's a separate install of our external dependencies
    # and there's an executable, mac_wx_workaround, that points to that
    # area.  By modifying python path with that, we can call the system
    # python to  launch wxPy applications.  Do that dance here:

    if [ -f $RTROOT/env/mac/bin/mac_wx_workaround ]; then 
       set $a
       echo Using mac wxPy workaround via $sysPyLib

       export PYTHONPATH=${sysPyLib}:$PYTHONPATH

    pythonw `which ModelEditorExe`
    python `which ModelEditorExe`

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3