Login
Remember
Register
Ask a Question
Print the file path of imported modules in python
0
votes
asked
May 24, 2020
in
Python
by
SakshiSharma
Print the file path of imported modules
#python-imported-modules
#python-modules
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 24, 2020
by
Robindeniel
import os;
import socket;
print(os)
print(socket)
Output:
<module 'os' from '/usr/lib/python3.5/os.py'>
<module 'socket' from '/usr/lib/python3.5/socket.py'>
...