Answers for "python os print python path"

0

print python path variable

import sys
print(sys.path)
Posted by: Guest on April-21-2021
0

show pythonpath

# option a
import os
print(os.environ['PYTHONPATH'].split(os.pathsep))

# option b
import sys
print(sys.path)
Posted by: Guest on September-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language