On Sun, Jun 6, 2010 at 8:16 PM, Ben Finney <ben+pyt...@benfinney.id.au<ben%2bpyt...@benfinney.id.au> > wrote:
> Anthony Papillion <papill...@gmail.com> writes: > > > import os > > > > os.path.append('$HOME/gsutils/boto') > > > > thinking I could then successfully do the import boto statement. > > Nope. > > You'll need to give the literal path. Substitution of environment > variables isn't performed implicitly in strings. > You can however use something like: os.path.append(os.path.expanduser('~/gsutils/boto'))
-- http://mail.python.org/mailman/listinfo/python-list