<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Stupid Mail.app signature-adding feature!<div><br><div><div>On Aug 13, 2008, at 2:17 PM, Eric Pettersen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> <span class="Apple-converted-space"> </span></span>Eric Pettersen</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> <span class="Apple-converted-space"> </span></span>UCSF Computer Graphics Lab</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> </span><a href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</a></font></div><br class="Apple-interchange-newline"></div></span> </div><br><div><div>On Aug 9, 2008, at 1:51 PM, Ondrej Marsalek wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: -webkit-monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><blockquote type="cite">And yes, please share how you are using chimera with the stock python. It<br></blockquote><blockquote type="cite">should be as "simple" as (1) setting the CHIMERA environment variable, (2)<br></blockquote><blockquote type="cite">adding CHIMERA/lib to LD_LIBRARY_PATH, (3) optionally setting up Tcl and Tk<br></blockquote><blockquote type="cite">to be chimera's version, (4) adding CHIMERA/share to sys.path, (3) importing<br></blockquote><blockquote type="cite">chimeraInit, and (5) calling chimeraInit.init with either nogui=True or<br></blockquote><blockquote type="cite">eventloop=False.<br></blockquote><br>i have the following chimera.env file that i source in bash:<br><br>export CHIMERA=/opt/chimera<br>export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CHIMERA/lib<br>export PYTHONPATH=$PYTHONPATH:$CHIMERA/share:$CHIMERA/lib:$CHIMERA/lib/python2.5/site-packages<br><br>the nogui version works, but that is not exactly what i wanted, as<br>that provides a midas prompt (if i understand it correctly). i would<br>rather like to stay in my original python shell (ipython in this<br>case). is there a way to do that?</span></blockquote><br></div><div>Here's what works for me:</div><div><br></div><div><div>env CHIMERA=/usr/local/chimera.dev LD_LIBRARY_PATH=/usr/local/chimera.dev/lib PYTHONPATH=/usr/local/chimera.dev/share:/usr/local/chimera.dev/lib:/usr/local/chimera.dev/lib/python2.5/site-packages python2.5 </div><div><br></div><div>You will have to adjust the above to your local installation, and may want to include the original values of LD_LIBRARY_PATH and PYTHONPATH if they are normally non-empty for you (i.e. in a similar fashion to your original export statements).</div><div><br></div><div>At the resulting python prompt:</div><div><br></div><div>from chimeraInit import init</div><div>init([], nogui=True, script="py:/dev/null")</div><div><br></div><div>The "script=" keyword arg prevents Chimera from giving you it's own command prompt since you are tricking it into believing that you've provided a script to execute (/dev/null is always an empty file). Alternatively, you could have just typed "stop" at the prompt that Chimera gave you and gotten back to the python prompt.</div><div><br></div><div>--Eric</div></div><br></div>_______________________________________________<br>Chimera-dev mailing list<br><a href="mailto:Chimera-dev@cgl.ucsf.edu">Chimera-dev@cgl.ucsf.edu</a><br>http://www.cgl.ucsf.edu/mailman/listinfo/chimera-dev<br></blockquote></div><br></div></body></html>