On Sun, Jun 6, 2010 at 8:16 PM, Ben Finney <ben+pyt...@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.
Also, that should be sys.path.append(); os.path is an unrelated module that has no `append` function. You'll need to import sys instead of os obviously. Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list