<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 0.5);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Alex Ross <<a href="mailto:alex.j.ross@gmail.com">alex.j.ross@gmail.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 0.5);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">December 19, 2007 8:08:51 PM EST<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 0.5);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;">TextMate users <<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 0.5);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>Re: [TxMt] Python Import</b><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 0.5);"><b>Reply-To: </b></span><span style="font-family:'Helvetica'; font-size:medium;">TextMate users <<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a>></span></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Tony,</div><div><br class="webkit-block-placeholder"></div><div>Have you made any modifications to your PYTHONPATH? </div></div></blockquote><div><br class="webkit-block-placeholder"></div>Hey Alex,<br><div><br class="webkit-block-placeholder"></div><div>Thanks for your quick reply. I have added a couple of folders to the PYTHONPATH in my `.profile` configuration file in my home directory. </div><div><br class="webkit-block-placeholder"></div><div>PYTHONPATH=/Users/Tony/python:/Users/Tony/python/nodebox/src</div><div><br class="webkit-block-placeholder"></div><div>It turns out that if I comment out the nodebox source path from the above statement, `import objc` works fine. Unfortunately, the reason I wanted to import the objc module was because nodebox requires it (and requires the source tree be on the PYTHONPATH). Does any one know why things would work fine from a Terminal, but not Textmate.</div><div><br class="webkit-block-placeholder"></div><div>BTW, sys.path gives the same output in Textmate and the Terminal window, except that Textmate appends the Textmate path and the Desktop, while Terminal appends the present working directory.</div><div><br class="webkit-block-placeholder"></div><div>Thanks,</div><div>-Tony</div><div><br class="webkit-block-placeholder"></div><div><br></div></div></body></html>