Print Python Runtime Information

March 23, 2018 by Zemian Deng Comment

Tags: python

# 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}")