Skip to main content

get_curdir

get_curdir() -> str

  • Description

    Get the path of the current working directory. Here, the working directory refers to the directory where the Python file calling this function is located. Typically, this is used as a reference for relative paths.

  • Returns

    • str: The path of the current working directory.
  • Example

    import docsaidkit as D

    DIR = D.get_curdir()
    print(DIR)
    # >>> '/path/to/your/current/directory'