<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Mar 5, 2009, at 12:21 PM, Drew Bryant 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; ">Currently I'm using a non-gui daily build of Chimera for 64-bit Linux<br>and calling the chimera binary via the shell (which works), but I need<br>to be able to pass parameters to the script being run at the command<br>line.</span></blockquote><br></div><div>I'm hoping others will chime in with regard to the errors you got when trying to import chimera modules into a standalone Python, but specifically in regard to the above you <i>can</i> pass arguments to your script if you tell Chimera it's a script (rather than a session file, say) by using the --script flag. Here's the pertinent info from the Chimera documentation:</div><div><br></div><div><span class="Apple-style-span" style="font-family: Times; "><a name="script"><tt><b>--script</b> <i>script.py</i></tt> </a><br>Put all unprocessed arguments into sys.argv for the script to handle. The end of arguments for Chimera can be indicated with <tt><b>--</b></tt>. For example, <br><tt><b>chimera --nogui --nostatus --script myscript.py -- -p 1jhg -r 1.8</b></tt> <br>would pass the arguments <tt><b>-p 1jhg -r 1.8</b></tt> to the script. See the <a href="file:///Users/pett/Applications/Chimera-daily-x11.app/Contents/Resources/share/chimera/helpdir/ProgrammersGuide/faq.html">Programmer's FAQ</a> for more details. See also the command<a href="file:///Users/pett/Applications/Chimera-daily-x11.app/Contents/Resources/share/chimera/helpdir/UsersGuide/midas/runscript.html"><b>runscript</b></a>.</span></div><div><font class="Apple-style-span" face="Times"><br></font></div><div><font class="Apple-style-span" face="Times">--Eric</font></div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-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: normal normal normal 16px/normal Helvetica; "><br class="Apple-interchange-newline"> 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: normal normal normal 16px/normal Helvetica; "> 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: normal normal normal 16px/normal Helvetica; "> <a href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</a></font></div></div></div><br><div></div></body></html>