atomica.utils.parent_dir¶
- atomica.utils.parent_dir()[source]¶
Return the parent directory of current file
This function returns a Path object for the folder containing the file that called this function e.g. if the file on disk is foo/bar/baz.py and baz.py contains x = at.parent_dir() then x would be an absolute path corresponding to Path(‘foo/bar’)
- Return type:
- Returns:
Path object to the directory containing calling file