Skip to content

Why there is not a main function to run the project? #476

Answered by ojnas
oolongkiller asked this question in Q&A
Discussion options

You must be logged in to vote

It's not clear what you are asking. There is no script which calls gnpy-transmission-example. gnpy-transmission-example is an autogenerated script, which just calls the transmission_main_example function in cli_examples.py:

https://github.com/Telecominfraproject/oopt-gnpy/blob/master/gnpy/tools/cli_examples.py#L111

The gnpy-transmission-example script itself is normally installed in the bin directory in your Python virtual environment but its content is not very interesting:

# PBR Generated from 'console_scripts'

import sys

from gnpy.tools.cli_examples import transmission_main_example


if __name__ == "__main__":
    sys.exit(transmission_main_example())

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oolongkiller
Comment options

Answer selected by oolongkiller
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