March 22, 2018

Print Python Runtime Information

# Print python runtime information
import os, sys
print(f"CWD={os.getcwd()}")
print(f"Python={sys.version}")
paths = '\n'.join(sys.path)
print(f"Lib={paths}")