From 90180413f0ebbac66a2ec7807e0b2ed98938908f Mon Sep 17 00:00:00 2001 From: asamoukin Date: Wed, 12 Nov 2008 08:18:07 +0000 Subject: [PATCH] git-svn-id: http://svn.calculate.ru/calculate2/calculate-lib/trunk@424 c91db197-33c1-4113-bf15-f8a5c547ca64 --- pym/cl_fill.py | 7 ++++++- pym/cl_profile.py | 2 ++ pym/cl_vars.py | 8 +++++++- 3 files changed, 15 insertions(+), 2 deletions(-) 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