Answers for "get path where program is install python"

1

get python script path

import os
def GetScriptPath():
    return os.path.realpath(__file__);

print(GetScriptPath());
Posted by: Guest on June-11-2021
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 "get path where program is install python"

Python Answers by Framework

Browse Popular Code Answers by Language