Add Project.path, fixes #1622

This commit is contained in:
Dave Halter
2020-06-27 02:18:31 +02:00
parent bc23458164
commit 344fef1e2f
5 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ class ChangedFile(object):
if new_lines[-1] != '':
new_lines[-1] += '\n'
project_path = self._inference_state.project._path
project_path = self._inference_state.project.path
if self._from_path is None:
from_p = ''
else:
@@ -112,7 +112,7 @@ class Refactoring(object):
def get_diff(self):
text = ''
project_path = self._inference_state.project._path
project_path = self._inference_state.project.path
for from_, to in self.get_renames():
text += 'rename from %s\nrename to %s\n' \
% (relpath(from_, project_path), relpath(to, project_path))