For performance reasons the first thing you check before doing anything else should be: if path[0] != "\\": return path On Fri, Aug 6, 2010 at 2:01 AM, tbnorth