Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include cs file #14

Open
vChavezB opened this issue Nov 13, 2024 · 3 comments
Open

include cs file #14

vChavezB opened this issue Nov 13, 2024 · 3 comments

Comments

@vChavezB
Copy link

vChavezB commented Nov 13, 2024

I havent been able to replicate the command include in python.

e.g.,:

include $ORIGIN/my_peripheral.cs

what is the correct pyrenode3 syntax for this?

@vChavezB
Copy link
Author

vChavezB commented Nov 15, 2024

What I ended doing is

m = Monitor()
res = m.Parse("include @/my_file.cs")

@sean-anderson-seco
Copy link

monitor.execute_script("include @/my_file.cs")?

@vChavezB
Copy link
Author

vChavezB commented Nov 15, 2024

Did not work. I think that is just for python scripts.

def execute_script(self, path: str) -> (str, str):
self.interaction.Clear()
with RenodeLoader().in_root():
self.TryExecuteScript(path)

Which then calls the C# equivalent :

https://github.com/renode/renode-infrastructure/blob/f97a79fc41999a6960ac3d9eb1df5feed54d1fec/src/Emulator/Extensions/UserInterface/Monitor.cs#L613-L615

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants