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)