Skip to content

Creating FMU from Python code which refers to a file on disk #233

Answered by markaren
jeehwanlee99 asked this question in Q&A
Discussion options

You must be logged in to vote

You will need to place the .pth file inside the FMU (resource folder). This is where project files are placed when using the CLI.
Access the runtime path using self.resources.

Additionally, nothing is stopping you from hosting the .pth file on some web server, and have the FMU fetch the data dynamically.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jeehwanlee99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants