[Bio] / ModelEditor / ModelEditor Repository:
ViewVC logotype

Annotation of /ModelEditor/ModelEditor

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (view) (download)

1 : efrank 1.10 #!/bin/sh
2 : efrank 1.1
3 : efrank 1.10 # On some systems you must use pythonw to invoke wx apps and on others
4 :     # you don't. Hide that via this script.
5 : efrank 1.1
6 :    
7 : efrank 1.10 if [ .${RTARCH} = .mac ]; then
8 : efrank 1.11
9 :     # on mac, must use system python and distributed wxPython. have
10 :     # not been able to build succesfully ourselves. but in Seed envrionment,
11 :     # python must be rebuilt to get bob's callPerl to work. So in Seed
12 :     # environment, paths etc., are setup to use Seeds own build of py,
13 :     # which breaks wxPy which breaks the ModelEditor (but not Kah in total)
14 :     # So, in Seed env, there's a separate install of our external dependencies
15 :     # and there's an executable, mac_wx_workaround, that points to that
16 :     # area. By modifying python path with that, we can call the system
17 :     # python to launch wxPy applications. Do that dance here:
18 :    
19 :     if [ -f $RTROOT/env/mac/bin/mac_wx_workaround ]; then
20 :     a=`mac_wx_workaround`
21 :     set $a
22 :     sysPyDir=$1
23 :     sysPyLib=$2
24 :     echo Using mac wxPy workaround via $sysPyLib
25 :    
26 :     export PYTHONPATH=${sysPyLib}:$PYTHONPATH
27 :     fi
28 :    
29 :     pythonw `which ModelEditorExe`
30 : efrank 1.10 else
31 : efrank 1.11 python `which ModelEditorExe`
32 : efrank 1.10 fi

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3