Changeset 13544


Ignore:
Timestamp:
Sep 19, 2019 1:40:32 PM (3 months ago)
Author:
randersson
Message:

#5819 Fixed hopefully final issue with compile_fmu returning None every time even during succesful compilations. Appears that an entry to dictionary was not raising any error even though type of key was incorrect.

Location:
branches/dev-5819/Python/src/pymodelica
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-5819/Python/src/pymodelica/compiler.py

    r13461 r13544  
    372372    process = Popen(cmd, stderr=PIPE, startupinfo=si)
    373373    log = CompilerLogHandler()
    374     log.start(process.stderr);
     374    log.start(process.stderr)
    375375    try:
    376         process.wait();
     376        process.wait()
    377377    finally:
    378         return log.end();
     378        return log.end()
    379379
    380380def _gen_compiler_options(compiler_options):
  • branches/dev-5819/Python/src/pymodelica/compiler_logging.py

    r13537 r13544  
    7070            self.node = None
    7171        elif self.state == 'unit' and name == "CompilationUnit":
    72             self.result.name = self.node['file']
     72            self.result.name = self.node[b'file']
    7373            self.state = None
    7474            self.node = None
     
    263263            A LogHandlerThread object.
    264264        """
    265         return LogHandlerThread(stream);
     265        return LogHandlerThread(stream)
    266266   
    267267    def start(self, stream):
Note: See TracChangeset for help on using the changeset viewer.