Skip to content

Commit

Permalink
[FIXED] python 2 projects using incorrect CLI command
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Lattanzio committed Jan 13, 2020
1 parent f98ec86 commit 5655f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/license_finder/package_managers/pip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def possible_package_paths
private

def pip_output
output = `python#{@python_version} #{LicenseFinder::BIN_PATH.join('license_finder_pip.py')} #{detected_package_path}`
output = `python#{@python_version == '2' ? "" : '3' } #{LicenseFinder::BIN_PATH.join('license_finder_pip.py')} #{detected_package_path}`
JSON(output).map do |package|
package.values_at('name', 'version', 'dependencies', 'location')
end
Expand Down

0 comments on commit 5655f60

Please sign in to comment.