9q fix#10

This commit is contained in:
shrlnm 2019-10-25 21:18:22 +03:00
parent b8aa41ab5b
commit 69e03a448e
2 changed files with 5 additions and 4 deletions

View File

@ -42,7 +42,7 @@ if __name__ == "__main__":
f = open (vf, "r")
data = f.read ()
zf.writestr (os.path.join ("EcuRenault", "Scenarios", os.path.basename (vf)), str (data))
for vf in vehiclesfiles:
print "Processing file ", vf
f = open (vf, "r")
@ -60,13 +60,13 @@ if __name__ == "__main__":
f = open (vf, "r")
data = f.read ()
zf.writestr (os.path.join ("EcuRenault", os.path.basename (vf)), str (data))
for vf in fbsessionfiles:
print "Processing file ", vf
f = open (vf, "r")
data = f.read ()
zf.writestr (os.path.join ("EcuRenault", "Sessions", os.path.basename (vf)), str (data))
for vf in locationsfiles:
print "Processing file ", vf
try:

View File

@ -138,7 +138,8 @@ def get_file_list_from_clip( pattern ):
def get_file_from_clip( filename ):
if (filename.lower().endswith('bqm')
or '/sg' in filename.lower()):
or '/sg' in filename.lower() \
or '\\sg' in filename.lower()):
mode = 'rb'
else:
mode = 'r'