Skip to content

Commit

Permalink
Fix code.
Browse files Browse the repository at this point in the history
Wrong condition.
  • Loading branch information
khatchad committed Mar 27, 2024
1 parent ae10faf commit 16b3f71
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,13 @@ private RefactoringStatus checkFunctions(IProgressMonitor monitor) throws Operat
LOG.info("PYTHONPATH for " + project + " is: " + pythonPath + ".");
assert pythonPath.stream().allMatch(File::exists) : "PYTHONPATH should exist.";

// if they PYTHONPATH is the same as the project path, don't use it.
// if the PYTHONPATH is the same as the project path.
if (pythonPath.size() == 1 && pythonPath.get(0).equals(getPath(project).toFile()))
engine = new EclipsePythonProjectTensorAnalysisEngine(project, pythonPath);
else
// Don't use it.
engine = new EclipsePythonProjectTensorAnalysisEngine(project);
else
// Use it.
engine = new EclipsePythonProjectTensorAnalysisEngine(project, pythonPath);

// build the call graph for the project.
PythonSSAPropagationCallGraphBuilder builder;
Expand Down

0 comments on commit 16b3f71

Please sign in to comment.