Top-rated recipes tagged "absolute_path"http://code.activestate.com/recipes/tags/absolute_path/top/2010-01-26T14:39:00-08:00ActiveState Code RecipesNormalizing paths (Python) 2010-01-26T14:39:00-08:00Gustavo Nareahttp://code.activestate.com/recipes/users/4172869/http://code.activestate.com/recipes/577023-normalizing-paths/ <p style="color: grey"> Python recipe 577023 by <a href="/recipes/users/4172869/">Gustavo Narea</a> (<a href="/recipes/tags/absolute_path/">absolute_path</a>, <a href="/recipes/tags/normalization/">normalization</a>, <a href="/recipes/tags/normalize/">normalize</a>, <a href="/recipes/tags/path/">path</a>, <a href="/recipes/tags/paths/">paths</a>). Revision 3. </p> <p>While dealing with paths, it's often necessary to make sure they all have the same structure so any operation you perform on them can be reliable, specially when it comes to comparing two or more paths. Unusual paths like "/this//is//a///path" or "another/path" can cause unexpected behavior in your application and this is where this function comes into play.</p>