os.path — Common pathname manipulations — Python 3 documentation#os.path.dirname
os.path.dirname(path,/)Return the directory name of pathname path. This is the first element of the pair returned by passing path to the function
split().Changed in version 3.6: Accepts a path-like object.
Printed 2026-06-28.
(echo:: @ ᯤ)