master
asamoukin 16 years ago
parent b36b01dda4
commit 98c26775c9

@ -2250,14 +2250,14 @@ class profile(_file, _terms):
self.openFiles(newFile, oldFile)
if flagSymlink:
if os.path.exists(prevOldFile):
if os.path.exists(prevOldFile) or os.path.islink(prevOldFile):
if os.path.islink(prevOldFile):
# если ссылка то удаляем её
os.unlink(prevOldFile)
else:
# иначе удаляем файл
os.remove(prevOldFile)
if not "/" == objHeadNew.params['link'][0]:
if not "/" == oldFile[0]:
path = os.path.split(os.path.abspath(prevOldFile))[0]
pathProg = os.getcwd()
os.chdir(path)

Loading…
Cancel
Save