Changeset 13593


Ignore:
Timestamp:
Sep 24, 2019 3:59:48 PM (3 months ago)
Author:
randersson
Message:

#5819 Updated interface to use the java method setTargetPlatforms(...) instead of directly modifying the field targetPlatforms. This was earlier possible to do due to a bug in jpype 0.6 but seems to have been fixed in jpype 0.7.0. This can easily be tested locally by trying to access property targetPlatforms through the python object ModelicaCompiler.

File:
1 edited

Legend:

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

    r13591 r13593  
    325325        if isinstance(platforms, str):
    326326            platforms = [platforms]
    327         self._compiler.targetPlatforms = platforms
     327        self._compiler.setTargetPlatforms(platforms)
    328328       
    329329    def compile_Unit(self, class_name, file_name, target, version, compile_to):
Note: See TracChangeset for help on using the changeset viewer.