Skip to content

Python examples in script writing guide need additional adjustment #70

@scandey

Description

@scandey

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

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