Importing modules
Anthony Papillion
papillion at gmail.com
Mon Jun 7 04:00:45 EDT 2010
On Jun 6, 10:16 pm, Ben Finney <ben+pyt... at benfinney.id.au> wrote:
> Anthony Papillion <papill... at 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.
>
> --
> \ “When we pray to God we must be seeking nothing — nothing.” |
> `\ —Saint Francis of Assisi |
> _o__) |
> Ben Finney
Hi Ben,
Thanks for the help! I'd misread the thread and thanked Chris while
ignoring you. Much thanks to you for the help. Worked like a charm.
More information about the Python-list
mailing list