regex for include statement

This commit is contained in:
Vitesh Shah 2018-06-06 15:28:40 +02:00
parent 54bccbe084
commit e1c5168040
1 changed files with 2 additions and 1 deletions

View File

@ -172,8 +172,9 @@ class Material():
self.data[part][name_section][items[0]] = items[1:]
def read(self,file=None):
#re_include = re.compile(r'^{(.+)}$') # pattern for file include
with open(file,'r') as f:
c=f.readlines()
c = f.readlines()
for p in self.parts:
self.parse_data(part=p, content=c)