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
- Returns
current directory of caller
Examples
>>> os.path.basename(script_dir()) # folder of docstring test 'audeer_core_io_script_dir0'