<human>:  get current directory - Python
<bot>: Here is some code to get the current directory of a script

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

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