get script path py code example
Example 1: python get script path
os.getcwd()
Example 2: get python script path
import os
def GetScriptPath():
return os.path.realpath(__file__);
print(GetScriptPath());
os.getcwd()
import os
def GetScriptPath():
return os.path.realpath(__file__);
print(GetScriptPath());