script_dir()

audeer.script_dir()[source]

Folder in which caller of this function is located.

When called from a file, it returns the directory, in which the file is stored. When called in an interactive session, it returns the current working directory of the interactive session.

Return type:

str

Returns:

current directory of caller

Examples

>>> audeer.script_dir()  # location of this file
'...audeer/core'