human
How can I find script's directory with Python?
assistant
Here is some code to print script's directory

print(os.path.dirname(os.path.realpath(__file__)))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.