9q fix#15
This commit is contained in:
parent
fe82196b73
commit
076f6b098c
@ -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
@ -151,7 +151,7 @@ class Port:
|
|||||||
self.portTimeout = portTimeout
|
self.portTimeout = portTimeout
|
||||||
|
|
||||||
portName = portName.strip ()
|
portName = portName.strip ()
|
||||||
|
|
||||||
if re.match (r"^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d{1,5}$", portName):
|
if re.match (r"^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d{1,5}$", portName):
|
||||||
try:
|
try:
|
||||||
self.ipaddr, self.tcpprt = portName.split (':')
|
self.ipaddr, self.tcpprt = portName.split (':')
|
||||||
@ -174,10 +174,10 @@ class Port:
|
|||||||
self.droid.bluetoothConnect ('00001101-0000-1000-8000-00805F9B34FB')
|
self.droid.bluetoothConnect ('00001101-0000-1000-8000-00805F9B34FB')
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if len (self.droid.bluetoothActiveConnections ().result) != 0:
|
if len (self.droid.bluetoothActiveConnections ().result) != 0:
|
||||||
self.btcid = list (self.droid.bluetoothActiveConnections ().result.keys ())[0]
|
self.btcid = list (self.droid.bluetoothActiveConnections ().result.keys ())[0]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.portName = portName
|
self.portName = portName
|
||||||
self.portType = 0
|
self.portType = 0
|
||||||
|
@ -260,17 +260,56 @@ 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
|
||||||
|
|
||||||
return result
|
|
||||||
|
|
||||||
def acf_MTC_compare( expr, mtc ):
|
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
|
||||||
|
|
||||||
|
|
||||||
|
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'''
|
||||||
|
|
||||||
result = False
|
result = False
|
||||||
|
|
||||||
or_list = expr.split(',')
|
or_list = expr.split(',')
|
||||||
or_list = map(lambda x:x.strip(),or_list)
|
or_list = map(lambda x:x.strip(),or_list)
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user