[CMF-checkins] CVS: CMF/CMFCore - utils.py:1.28

Sidnei da Silva sidnei@x3ng.com.br
Tue, 6 Aug 2002 20:56:28 -0400


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv14062

Modified Files:
	utils.py 
Log Message:
Merging Shane suggestion of fix while people discuss about this.

=== CMF/CMFCore/utils.py 1.27 => 1.28 ===
 def minimalpath(p):
     # Trims INSTANCE_HOME or SOFTWARE_HOME from a path.
     p = os_path.abspath(p)
-    abs = normalize(p)
-    p = abs[abs.index('products'):]
+    #abs = normalize(p)
+    p = p[p.index('Products'):]
     while p[:1] in separators:
         p = p[1:]
     return p