File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# CHANGELOG
22
3+ ## v3.1.1 (2023-08-27)
4+
5+ - Expand paths for user-supplied strings. This now allows for spaces in paths and proper expansion of home directories (eg: ` ~ ` )
6+
37## v3.1.0 (2023-08-24)
48
59- Adds ` --version ` flag
Original file line number Diff line number Diff line change 1- __version__ = '3.1.0 '
1+ __version__ = '3.1.1 '
Original file line number Diff line number Diff line change 11import argparse
22import json
3+ import os
34
45import pip_tree
56from pip_tree ._version import __version__
@@ -32,7 +33,7 @@ def generate_console_output(self):
3233 """Take the output of the dependency tree and print to console."""
3334 print ('Generating Pip Tree report...' )
3435
35- final_output , package_count = pip_tree .generate_pip_tree (self .path )
36+ final_output , package_count = pip_tree .generate_pip_tree (os . path . expanduser ( self .path ) )
3637 console_output = json .dumps (final_output , indent = 4 )
3738
3839 print (console_output )
You can’t perform that action at this time.
0 commit comments