diff --git a/pym/cl_profile.py b/pym/cl_profile.py index 7501536..329dd8e 100644 --- a/pym/cl_profile.py +++ b/pym/cl_profile.py @@ -1657,10 +1657,15 @@ class _file(_error): self.baseDir = False self.dirs = [] self.files = [] + self.links = [] def getFilesDir(dirP, dirname,names): for nameFile in names: absNameFile = dirname + "/" + nameFile - if os.path.isfile(absNameFile): + if os.path.islink(absNameFile): + dest = absNameFile + src = os.readlink(absNameFile) + dirP.links.append((src,dest)) + elif os.path.isfile(absNameFile): dirP.files.append(absNameFile) elif os.path.isdir(absNameFile): dirP.dirs.append(absNameFile) diff --git a/pym/cl_utils.py b/pym/cl_utils.py index f50c268..54e5f72 100644 --- a/pym/cl_utils.py +++ b/pym/cl_utils.py @@ -226,7 +226,8 @@ def columnWrite(*cols): print def justify(s,width): - return s + # добавить отступы чтобы закончить колонку + return s.ljust(width, ' ') '''Выровнить текст по ширине Параметры: