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

Python examples in script writing guide need additional adjustment #70

Open
scandey opened this issue Oct 23, 2023 · 0 comments
Open

Python examples in script writing guide need additional adjustment #70

scandey opened this issue Oct 23, 2023 · 0 comments

Comments

@scandey
Copy link

scandey commented Oct 23, 2023

Initial style example at top of https://docs.openc3.com/docs/guides/script-writing#ruby-vs-python-in-cosmos
has the following Python code that references ruby files (and ruby load)

load('TARGET/lib/upload_utility.rb') # library we do NOT want to show executing
load_utility('TARGET/lib/helper_utility.rb') # library we do want to show executing

I expect it should be something like

import upload_utility # library we do NOT want to show executing, assuming it is in the same folder
load_utility('TARGET/lib/helper_utility.py') # library we do want to show executing

though not exactly because Python imports are finicky compared to Ruby loads

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

1 participant