Answers for "getpath of python"

0

finding path of a module in python

from inspect import getmodule
print(getmodule(os))
Posted by: Guest on July-27-2021
0

how to get the realpath with python

import os
print("real path of file ",filename," is ",str(os.path.realpath(filename)))
Posted by: Guest on October-05-2021

Python Answers by Framework

Browse Popular Code Answers by Language