On Sun, Jun 6, 2010 at 8:16 PM, Ben Finney <[email protected]<ben%[email protected]> > wrote:
> Anthony Papillion <[email protected]> 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
