<br><div class="gmail_quote">On Sun, Jun 6, 2010 at 8:16 PM, Ben Finney <span dir="ltr"><<a href="mailto:ben%2Bpython@benfinney.id.au">ben+python@benfinney.id.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Anthony Papillion <<a href="mailto:papillion@gmail.com">papillion@gmail.com</a>> writes:<br>
<br>
> import os<br>
><br>
> os.path.append('$HOME/gsutils/boto')<br>
><br>
> thinking I could then successfully do the import boto statement.<br>
> Nope.<br>
<br>
</div>You'll need to give the literal path. Substitution of environment<br>
variables isn't performed implicitly in strings.<br></blockquote><div>You can however use something like:<br> <br></div>os.path.append(os.path.expanduser('~/gsutils/boto'))<br><br></div>