From 50fa47e455c98c559a8df83c4537e96cc7ee3a58 Mon Sep 17 00:00:00 2001 From: asamoukin Date: Sat, 1 Nov 2008 12:27:39 +0000 Subject: [PATCH] git-svn-id: http://svn.calculate.ru/calculate2/calculate-client/trunk@344 c91db197-33c1-4113-bf15-f8a5c547ca64 --- pym/cl_client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/cl_client.py b/pym/cl_client.py index 602bc5a..c84e8e6 100644 --- a/pym/cl_client.py +++ b/pym/cl_client.py @@ -385,6 +385,9 @@ 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) + return True if not os.path.exists(homeDir): self.createUserDir(uid, gid, homeDir) # Записываем переменную логин