Dumb Newbie Question
Matthew Dixon Cowles
matt at mondoinfo.com
Sat Dec 9 20:12:57 CET 2000
On Sat, 09 Dec 2000 13:42:09 -0500, Scott Weisel <sweisel at drew.edu>
>I thought I might be able to modify sys.path like this
>sys.path = sys.path + "c:\\python16\\programs
>but I'm getting a TypeError stating "illegal argument type for
sys.path is a list and the + operator won't append a string to a
list. You want either:
since + will concatenate two lists or else
since a list's append method will take a string.
But I think it's more common to write:
to put your own directory up front so that in case of a name conflict, it's
your own stuff that's picked up.
More information about the Python-list