Skip to content

Commit

Permalink
Add license and readme files to demo FMUs
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Menne authored and Benedikt Menne committed Nov 29, 2023
1 parent 57a5bab commit 8bb7b57
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ls-bus-guide/demos/can-bus-simulation/PackFmu.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

def main():
demo_dir = Path(__file__).parent
root_dir = Path(__file__).parent.parent.parent.parent

with zipfile.ZipFile(FMU_PATH, 'w') as fmu:
# Add LS-BUS headers from GitHub repository
Expand All @@ -36,6 +37,10 @@ def main():
fmu.write(demo_dir / 'description' / 'terminalsAndIcons.xml', 'terminalsAndIcons/terminalsAndIcons.xml')
fmu.write(demo_dir / 'description' / 'fmi-ls-manifest.xml', 'extra/org.fmi-standard.fmi-ls-bus/fmi-ls-manifest.xml')

# Add additional documentation files
fmu.write(root_dir / 'LICENSE.txt', 'documentation/licenses/LICENSE.txt')
fmu.write(demo_dir / 'README.md', 'documentation/README.md')


if __name__ == '__main__':
main()
5 changes: 5 additions & 0 deletions ls-bus-guide/demos/can-node-triggered-output/PackFmu.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

def main():
demo_dir = Path(__file__).parent
root_dir = Path(__file__).parent.parent.parent.parent

with zipfile.ZipFile(FMU_PATH, 'w') as fmu:
# Add LS-BUS headers from GitHub repository
Expand All @@ -36,6 +37,10 @@ def main():
fmu.write(demo_dir / 'description' / 'terminalsAndIcons.xml', 'terminalsAndIcons/terminalsAndIcons.xml')
fmu.write(demo_dir / 'description' / 'fmi-ls-manifest.xml', 'extra/org.fmi-standard.fmi-ls-bus/fmi-ls-manifest.xml')

# Add additional documentation files
fmu.write(root_dir / 'LICENSE.txt', 'documentation/licenses/LICENSE.txt')
fmu.write(demo_dir / 'README.md', 'documentation/README.md')


if __name__ == '__main__':
main()

0 comments on commit 8bb7b57

Please sign in to comment.