[Checkins] SVN: z3c.recipe.filetemplate/trunk/ - Use ``realpath`` helper function from zc.buildout on the buildout

Sidnei da Silva sidnei.da.silva at gmail.com
Sat Jun 6 09:31:22 EDT 2009


Log message for revision 100662:
  - Use ``realpath`` helper function from zc.buildout on the buildout
    directory too, such that it goes through the same normalization as
    the path being compared and stands a chance of working on Windows,
    due to possible drive letter case differences.
  
  

Changed:
  U   z3c.recipe.filetemplate/trunk/CHANGES.txt
  U   z3c.recipe.filetemplate/trunk/z3c/recipe/filetemplate/__init__.py

-=-
Modified: z3c.recipe.filetemplate/trunk/CHANGES.txt
===================================================================
--- z3c.recipe.filetemplate/trunk/CHANGES.txt	2009-06-05 22:54:00 UTC (rev 100661)
+++ z3c.recipe.filetemplate/trunk/CHANGES.txt	2009-06-06 13:31:22 UTC (rev 100662)
@@ -5,7 +5,14 @@
 2.1 (unreleased)
 ================
 
+-----
+Fixes
+-----
 
+- Use ``realpath`` helper function from zc.buildout on the buildout
+  directory too, such that it goes through the same normalization as
+  the path being compared and stands a chance of working on Windows,
+  due to possible drive letter case differences.
 
 2.0.2 (2009-05-04)
 ==================

Modified: z3c.recipe.filetemplate/trunk/z3c/recipe/filetemplate/__init__.py
===================================================================
--- z3c.recipe.filetemplate/trunk/z3c/recipe/filetemplate/__init__.py	2009-06-05 22:54:00 UTC (rev 100661)
+++ z3c.recipe.filetemplate/trunk/z3c/recipe/filetemplate/__init__.py	2009-06-06 13:31:22 UTC (rev 100662)
@@ -62,7 +62,8 @@
         # get and check the files to be created
         self.filenames = self.options.get('files', '*').split()
         self.source_dir = self.options.get('source-directory', '').strip()
-        here = self.buildout['buildout']['directory']
+        here = zc.buildout.easy_install.realpath(
+            self.buildout['buildout']['directory'])
         self.destination_dir = here
         if self.source_dir:
             self.recursive = True



More information about the Checkins mailing list