regex for include statement
This commit is contained in:
parent
54bccbe084
commit
e1c5168040
|
@ -172,8 +172,9 @@ class Material():
|
||||||
self.data[part][name_section][items[0]] = items[1:]
|
self.data[part][name_section][items[0]] = items[1:]
|
||||||
|
|
||||||
def read(self,file=None):
|
def read(self,file=None):
|
||||||
|
#re_include = re.compile(r'^{(.+)}$') # pattern for file include
|
||||||
with open(file,'r') as f:
|
with open(file,'r') as f:
|
||||||
c=f.readlines()
|
c = f.readlines()
|
||||||
for p in self.parts:
|
for p in self.parts:
|
||||||
self.parse_data(part=p, content=c)
|
self.parse_data(part=p, content=c)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue