Commit 68b89cde authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed double instantiation of context.

parent 7505b8b1
...@@ -207,8 +207,7 @@ class SiestaContext(object): ...@@ -207,8 +207,7 @@ class SiestaContext(object):
def startedParsing(self, fname, parser): def startedParsing(self, fname, parser):
self.fname = fname self.fname = fname
path = os.path.abspath(fname) path = os.path.abspath(fname)
self.dirname, _ = os.path.split(path) self.dirname = os.path.dirname(path)
#self.parser = parser
#def onClose_x_siesta_section_xc_authors(self, backend, gindex, section): #def onClose_x_siesta_section_xc_authors(self, backend, gindex, section):
...@@ -678,7 +677,7 @@ class SiestaParser(): ...@@ -678,7 +677,7 @@ class SiestaParser():
metaInfoEnv, metaInfoEnv,
parser_info, parser_info,
cachingLevelForMetaName={}, cachingLevelForMetaName={},
superContext=SiestaContext(), superContext=context,
superBackend=backend) superBackend=backend)
return backend return backend
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment