diff --git a/pym/cl_fill.py b/pym/cl_fill.py index 9bcd276..d835cd5 100755 --- a/pym/cl_fill.py +++ b/pym/cl_fill.py @@ -124,4 +124,9 @@ class fillVars(object, cl_base.glob_attr): """язык (прим: ru)""" lang = self.Get("os_locale_lang") if lang: - return lang.split("_")[0] \ No newline at end of file + return lang.split("_")[0] + + def get_os_march_type(self): + """архитектура процессора""" + march = self._runos("""%s uname -m"""%self.path_env) + return march \ No newline at end of file diff --git a/pym/cl_profile.py b/pym/cl_profile.py index db5265b..73d7afa 100644 --- a/pym/cl_profile.py +++ b/pym/cl_profile.py @@ -2007,6 +2007,8 @@ class profile(_file, _terms): oldFile = self._baseDir + dirName + "/" + fileName listProfTitle = dirObj.baseDir.split("/")[-2:] profTitle = '"' + "/".join(listProfTitle) + '"' + # Записываем в переменную обрабатываемый файл + self.objVar.Set("cl_pass_file",oldFile) self.join(fileProfile, oldFile, (self.objVar.Get("cl_ver"),profTitle)) filesApply.append(oldFile) diff --git a/pym/cl_vars.py b/pym/cl_vars.py index 613cc4a..4236dd4 100644 --- a/pym/cl_vars.py +++ b/pym/cl_vars.py @@ -53,4 +53,10 @@ class Data: os_locale_language = {} ## поддерживаемые языки (пример: be be_BY da de en и т.д.) #os_locale_linguas = {'value':'be be_BY da de en en_GB es fr it nb nn pl \ -#pt_BR ru se sv uk'} \ No newline at end of file +#pt_BR ru se sv uk'} + + # архитектура процессора + os_march_type = {} + + # обрабатываемый файл профиля + cl_pass_file = {'mode':"w"} \ No newline at end of file