elif not else if
This commit is contained in:
parent
1acbcfbe91
commit
308f1174ff
|
@ -96,7 +96,7 @@ with open(filePath, 'r') as file:
|
||||||
if line[0:4] == 'nc: ' :
|
if line[0:4] == 'nc: ' :
|
||||||
parts = line.strip().split(': ')
|
parts = line.strip().split(': ')
|
||||||
jsonObj['config']['classes'] = int(parts[1])
|
jsonObj['config']['classes'] = int(parts[1])
|
||||||
else if line[0:7] == 'names: ' :
|
elif line[0:7] == 'names: ' :
|
||||||
classesLine = line.strip().replace('names: ', '').replace('[', '').replace(']', '')
|
classesLine = line.strip().replace('names: ', '').replace('[', '').replace(']', '')
|
||||||
classes = classesLine.split(',')
|
classes = classesLine.split(',')
|
||||||
i = 0
|
i = 0
|
||||||
|
|
Loading…
Reference in New Issue