Check for empty datapath in xsdir for conversion.

This commit is contained in:
Paul Romano 2014-01-27 20:36:31 -05:00
parent bea3c41755
commit 7cf22c6c32

View file

@ -35,8 +35,12 @@ class Xsdir(object):
words = line.split()
if words:
if words[0].lower().startswith('datapath'):
index = line.index('=')
self.datapath = line[index+1:].strip()
if '=' in words[0]:
index = line.index('=')
self.datapath = line[index+1:].strip()
else:
if len(line.strip()) > 8:
self.datapath = line[8:].strip()
else:
self.f.seek(0)