Answers for "how to get path of python"

9

get path to current directory python

import os
os.path.abspath(os.getcwd())
Posted by: Guest on September-16-2020
1

finding path of a module in python

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

Code answers related to "how to get path of python"

Python Answers by Framework

Browse Popular Code Answers by Language