File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -386,12 +386,19 @@ def bash(self):
386
386
)
387
387
388
388
389
- def version ():
389
+ def version (debug = False ):
390
390
"""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" , "" ))
395
402
396
403
397
404
class CLI (object ):
You can’t perform that action at this time.
0 commit comments