Skip to content

Commit b6b4ed8

Browse files
committed
fix(cli): add more debug output
Signed-off-by: Chris Snow <[email protected]>
1 parent 107c1d6 commit b6b4ed8

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

bin/cli.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,19 @@ def bash(self):
386386
)
387387

388388

389-
def version():
389+
def version(debug=False):
390390
"""Display version information."""
391-
print("HPECP Version: " + ContainerPlatformClient.version())
392-
print("HPECP Path: " + hpecp.__file__)
393-
print("Python Version: " + sys.version.replace("\n", ""))
394-
print("Python Path: " + sys.executable)
391+
print("HPECP Version: " + ContainerPlatformClient.version())
392+
393+
if debug:
394+
print("HPECP Bin Path: " + os.path.dirname(os.path.abspath(__file__)))
395+
print(
396+
"HPECP Lib Path: " + os.path.dirname(os.path.abspath(hpecp.__file__))
397+
)
398+
print("Python Version: " + sys.version.replace("\n", ""))
399+
print("Python Exe Path: " + sys.executable)
400+
print("Python Path: " + os.pathsep.join(sys.path))
401+
print("System Path: " + os.environ.get("PATH", ""))
395402

396403

397404
class CLI(object):

0 commit comments

Comments
 (0)