Good Idea I'll try that!
Thanks for your assistance.
/\/\
--
http://mail.python.org/mailman/listinfo/python-list
Using basename works, but leaves the extra stuff at the end.
Which would have to be removed with another line of code
I get this--> ppbhat.tga";
Thanks, for the idea though.
/\/\ason
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I often find myself cleaning up strings like the following:
setAttr ".ftn" -type "string" /assets/chars/
/boya/geo/textures/lod1/ppbhat.tga";
Using regular expressions, the best I can do so far is using the re.sub
command but it still takes two lines. Can I do this in one line? O