|
From: Sebastian W. <bas...@gm...> - 2008-12-02 09:33:40
|
Monday 01 December 2008 23:40:42 T. Hariharan
> This is what I'm doing in my script to convert the single value to a list.
> Perhaps there is a better way. if type(pathList) == type(''):
> pathList = [pathList]
if isinstance(pathList, basestring):
pathList = [pathList]
--
Freedom is always the freedom of dissenters.
(Rosa Luxemburg)
|