how to find the location of a python script in console code example Example: python get script path os.getcwd()