diff -aur python.orig/Lib/lib2to3/refactor.py python.new/Lib/lib2to3/refactor.py --- python.orig/Lib/lib2to3/refactor.py 2008-06-20 23:55:52.000000000 +0400 +++ python.new/Lib/lib2to3/refactor.py 2008-06-20 23:48:29.000000000 +0400 @@ -172,7 +172,8 @@ want a pre-order AST traversal, and post_order is the list that want post-order traversal. """ - fixer_pkg = self.fixer_dir.replace(os.path.sep, ".") + fixer_pkg = os.path.relpath(self.fixer_dir, os.path.join(os.path.dirname(__file__), '..')) + fixer_pkg = fixer_pkg.replace(os.path.sep, ".") if os.path.altsep: fixer_pkg = fixer_pkg.replace(os.path.altsep, ".") pre_order_fixers = [] diff -aur python.orig/Tools/scripts/2to3 python.new/Tools/scripts/2to3 --- python.orig/Tools/scripts/2to3 2008-06-20 23:54:30.000000000 +0400 +++ python.new/Tools/scripts/2to3 2008-06-20 23:33:29.000000000 +0400 @@ -1,5 +1,7 @@ -#!/usr/bin/env python +#!/usr/bin/python3.0 from lib2to3 import refactor import sys +import os -sys.exit(refactor.main("lib2to3/fixes")) +fixers = os.path.join(os.path.dirname(refactor.__file__), "fixes") +sys.exit(refactor.main(fixers))