Skip to content

Custom Build Directory #204

Closed
Closed

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)

Activity

  1. arun3688 commented on Mar 25, 2024

    @arun3688
    Collaborator

    @kiroorooki the issue is fixed with this commit bdd04a3, please update your pip package with the following command

    python -m pip install -U https://github.com/OpenModelica/OMPython/archive/master.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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