Peter Otten
2004-05-06 17:05:31 UTC
PathList= string.split(FullPath, "/") is generating the above error
message. when I run my script, but works just fine from the python
command line! What gives?
Traceback (most recent call last):message. when I run my script, but works just fine from the python
command line! What gives?
import string
string.split(1, "/")
string.split(1, "/")
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.3/string.py", line 121, in split
return s.split(sep, maxsplit)
AttributeError: 'int' object has no attribute 'split'
string = None
string.split("abc/def", "/")
string.split("abc/def", "/")
File "<stdin>", line 1, in ?
AttributeError: 'NoneType' object has no attribute 'split'
Peter