I'm building a tool in python and for that I have a question:
I have a string such as "Denver.dwg Group Layer\Denver.dwg Annotation".
How do I assign to a variable (for later print) only the first part of the string, "Denver.dwg" ?? I need to provide a general solution, as the city name differs from case to case (it might be shorter or longer) and so counting the places until the g of dwg (10 places) won't help.
(I'm writing the python tool for arcgis 9.3.1)