From c4ea358c7cdcd76dc9bf35b54e22cc9be05dc62a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 11 Sep 2009 23:47:38 +0200 Subject: Correct path names for fixed files. --HG-- branch : distribute extra : rebase_source : d5bd9c6fdb8cf2208eca9e0e5f37cb7fea1d14a5 --- setuptools/command/sdist3.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setuptools/command/sdist3.py') diff --git a/setuptools/command/sdist3.py b/setuptools/command/sdist3.py index 4fbfa8db..fc7ebb97 100644 --- a/setuptools/command/sdist3.py +++ b/setuptools/command/sdist3.py @@ -1,3 +1,4 @@ +import os from distutils import log from sdist import sdist from lib2to3.refactor import RefactoringTool, get_fixers_from_package @@ -31,4 +32,4 @@ class sdist3(sdist): if fixer_names is None: fixer_names = get_fixers_from_package('lib2to3.fixes') r = _RefactoringTool(fixer_names) - r.refactor([f for f in files if f.endswith(".py")], write=True) + r.refactor([os.path.join(base_dir, f) for f in files if f.endswith(".py")], write=True) -- cgit v1.2.1