From 214a7b261c2915f7014ed170d02f9142ced53a9b Mon Sep 17 00:00:00 2001 From: asamoukin Date: Thu, 6 Nov 2008 14:28:52 +0000 Subject: [PATCH] git-svn-id: http://svn.calculate.ru/calculate2/calculate-lib/trunk@380 c91db197-33c1-4113-bf15-f8a5c547ca64 --- pym/cl_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/cl_profile.py b/pym/cl_profile.py index dfdbdf5..9dd8974 100644 --- a/pym/cl_profile.py +++ b/pym/cl_profile.py @@ -2020,14 +2020,14 @@ class profile(_file, _terms): flagForce = False # Если есть параметр mirror if objHeadNew.params.has_key("mirror"): - if not os.path.exists(oldFile): - return False if objHeadNew.params.has_key("link"): profileFile = objHeadNew.params['link'] if not os.path.exists(profileFile): if os.path.exists(oldFile): os.remove(oldFile) return False + elif not os.path.exists(oldFile): + return False # Если есть указатель на файл профиля (link) if objHeadNew.params.has_key("link"): profileFile = objHeadNew.params['link']