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

#29975 add app_path, app_args, version params to before_app_launch hook #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kporangehat
Copy link

The before_app_launch hook now gets the same parameters as the app_launch hook which means you have access to the path of the application being launched and any arguments passed in. Also added a version parameter which will contain the version being launched if it was defined in the "versions" setting in the Launcher instance (otherwise this will be None).

The before_app_launch hook now gets the same parameters as the app_launch hook which means you have access to the path of the application being launched and any arguments passed in. Also added a version parameter which will contain the version being launched *if* it was defined in the "versions" setting in the Launcher instance (otherwise this will be None).
this will be None.
"""
if version is None:
return version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor but I think this would be clearer if it was 'return None'

@alandann
Copy link
Contributor

One very minor comment but otherwise looks good :)

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

Successfully merging this pull request may close these issues.

2 participants