Skip to content

Commit

Permalink
fix: path expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Aug 28, 2023
1 parent 8d1712e commit b7d43b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v3.1.1 (2023-08-27)

- Expand paths for user-supplied strings. This now allows for spaces in paths and proper expansion of home directories (eg: `~`)

## v3.1.0 (2023-08-24)

- Adds `--version` flag
Expand Down
2 changes: 1 addition & 1 deletion pip_tree/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.1.0'
__version__ = '3.1.1'
3 changes: 2 additions & 1 deletion pip_tree/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import argparse
import json
import os

import pip_tree
from pip_tree._version import __version__
Expand Down Expand Up @@ -32,7 +33,7 @@ def generate_console_output(self):
"""Take the output of the dependency tree and print to console."""
print('Generating Pip Tree report...')

final_output, package_count = pip_tree.generate_pip_tree(self.path)
final_output, package_count = pip_tree.generate_pip_tree(os.path.expanduser(self.path))
console_output = json.dumps(final_output, indent=4)

print(console_output)
Expand Down

0 comments on commit b7d43b1

Please sign in to comment.