9q fix#15

This commit is contained in:
shrlnm 2019-12-02 23:24:37 +03:00
parent fe82196b73
commit 076f6b098c
5 changed files with 54 additions and 12 deletions

View File

@ -70,18 +70,21 @@ and extract next to directories EcuRenault, Location, Vehicles
You have to get the next directory tree You have to get the next directory tree
``` ```
<any work directory> <any work directory>
|- _pyren_launcher.py #(universal launcher)
|- BVMEXTRACTION #(need for doc_maker) |- BVMEXTRACTION #(need for doc_maker)
|- DocDB_xx #(need for doc_maker where xx=language) |- DocDB_xx #(need for doc_maker where xx=language)
|- EcuRenault #(for CLIP mode) |- EcuRenault #(for CLIP mode)
|- Location #(for CLIP mode) |- Location #(for CLIP mode)
|- Vehicles #(for CLIP mode) |- Vehicles #(for CLIP mode)
|- ecus #(for DDT mode) |- DDT2000data #(for DDT mode)
|- graphics #(for DDT mode optional) | |- ecus #(for DDT mode)
| |- graphics #(for DDT mode)
| |- vehicles #(for DDT mode)
|
|- pyren #(pyren) |- pyren #(pyren)
| |- pyren.py | |- pyren.py
... ... ... ...
| |- <other modules> | |- <other modules>
|- _pyren_launcher.py #(universal launcher)
``` ```
## Installation on MacOS and Linux ## Installation on MacOS and Linux

File diff suppressed because one or more lines are too long

View File

@ -260,11 +260,50 @@ def acf_MTC_and( expr, mtc ):
interm_res = acf_MTC_finde( ande, mtc ) interm_res = acf_MTC_finde( ande, mtc )
result = result and interm_res result = result and interm_res
#print "and:", expr, result return result
def acf_MTC_or(expr, mtc):
''' expr - expression with AND rules'''
''' mtc - list of options '''
''' and-operand in MTC expression '''
result = False
or_list = expr.split(',')
or_list = map(lambda x: x.strip(), or_list)
for ore in or_list:
interm_res = acf_MTC_finde(ore, mtc)
result = result or interm_res
if result:
return result
return result return result
def acf_MTC_compare( expr, mtc ):
def acf_MTC_compare(expr, mtc):
''' expr - expression with rules'''
''' mtc - list of options '''
''' this function match MTC-tag with MTC-expression'''
result = True
and_list = expr.split('/')
and_list = map(lambda x: x.strip(), and_list)
for ande in and_list:
if ',' in ande:
interm_res = acf_MTC_or(ande, mtc)
else:
interm_res = acf_MTC_finde(ande, mtc)
result = result and interm_res
return result
def acf_MTC_compare_old( expr, mtc ):
''' expr - expression with rules''' ''' expr - expression with rules'''
''' mtc - list of options ''' ''' mtc - list of options '''
''' this function match MTC-tag with MTC-expression''' ''' this function match MTC-tag with MTC-expression'''

View File

@ -226,7 +226,7 @@ def optParser():
default=False, default=False,
action="store_true") action="store_true")
parser.add_argument("--verbose", parser.add_argument("-vv", "--verbose",
help="show verbose output (unused)", help="show verbose output (unused)",
dest="verb", dest="verb",
default=False, default=False,