Permalink
Browse files

Move cache into same directory as original source so opening paths

relative to __file__ works.
  • Loading branch information...
1 parent e46662f commit fa900df31a7ef0ad66d7b3b3051fbfd618cc1719 @bdarnell committed Feb 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 auto2to3.py
View
@@ -49,7 +49,7 @@ def find_module(self, fullname, path=None):
return None
if file and etc[2] == imp.PY_SOURCE:
if any(fullname.startswith(p) for p in PACKAGES):
- outfilename = '_auto2to3-%s.py' % fullname
+ outfilename = '/_auto2to3_'.join(os.path.split(filename))
if (not os.path.exists(outfilename) or
os.stat(filename).st_mtime > os.stat(outfilename).st_mtime):
try:

0 comments on commit fa900df

Please sign in to comment.