From 431b817f92ff803bbecb0b4969bc399d34e58be0 Mon Sep 17 00:00:00 2001 From: asamoukin Date: Sat, 1 Nov 2008 12:31:17 +0000 Subject: [PATCH] git-svn-id: http://svn.calculate.ru/calculate2/calculate-client/trunk@346 c91db197-33c1-4113-bf15-f8a5c547ca64 --- pym/cl_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/cl_client.py b/pym/cl_client.py index c84e8e6..4b60d90 100644 --- a/pym/cl_client.py +++ b/pym/cl_client.py @@ -385,8 +385,8 @@ calculate-server"), # Создаем пользовательскую директорию homeDir = os.path.join("/home",self.userName) self.clVars.Set('cl_root_path',homeDir,True) - if not os.path.exists(homeDir) and os.listdir(homeDir): - self.printWarning(_("home dir %s exists")%homeDir) + if os.path.exists(homeDir) and os.listdir(homeDir): + self.printWARNING(_("home dir %s exists")%homeDir) return True if not os.path.exists(homeDir): self.createUserDir(uid, gid, homeDir)