Skip to content

Custom Build Directory #204

@kiroorooki

Description

@kiroorooki

Hey, I need to build my model in a specific folder for my program.

I have no clue if this functionality already exists but I've modified OMPython for my purpose.

Can someone tell me if there's a proper way and if there isn't, can we add this functionality to OMPython?
Many thanks!

Modification:
-Added "customBuildDirectory=None" as an argument for ModelicaSystem

-Added the following ModelicaSystem init:

if customBuildDirectory is not None:
    exp="".join(["cd(","\"",customBuildDirectory,"\"",")"])
    self.getconn.sendExpression(exp)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions