libtextworker 0.1.4
Cross-platform, free and open library for Python projects

◆ GetCurrentDir()

def libtextworker.general.GetCurrentDir ( str  file,
bool   aspathobj = False 
)
Get the current directory path.
@param file (str): File path
@param aspathobj (bool): Return a pathlib.Path object instead of a string.
@return pathlib.Path | str

Definition at line 148 of file general.py.