I can do this :

>>> sys.path.append ( 'C:\dump1' )

but not :

>>> x = 'C:\dir1'
>>> sys.path.append(x)

or :


but not :

>>> x = ['C:\dir1']
>>> sys.path.append(x)

Can I append variables to the path, rather than explicit strings ?

-- 
View this message in context: 
http://www.nabble.com/sys.path.append-tp21054555p21054555.html
Sent from the Python - tutor mailing list archive at Nabble.com.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to