Merge pull request #144 from jiyeqian/master

Prevent the crash
This commit is contained in:
darrenl 2017-08-14 09:40:12 +08:00 committed by GitHub
commit 10102c9e37
2 changed files with 6 additions and 2 deletions

View File

@ -133,7 +133,10 @@ class PascalVocReader:
self.shapes = []
self.filepath = filepath
self.verified = False
try:
self.parseXML()
except:
pass
def getShapes(self):
return self.shapes

View File

@ -1,10 +1,11 @@
import pickle
import os
import sys
class Settings(object):
def __init__(self):
self.data = {}
self.path = '.settings.pkl'
self.path = os.path.join(os.path.dirname(sys.argv[0]), '.settings.pkl')
def __setitem__(self, key, value):
self.data[key] = value