-
Notifications
You must be signed in to change notification settings - Fork 34
SG-40163 [Workaround] - Generate the dynamic menu for Houdini before the app starts #86
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -131,6 +131,33 @@ def prepare_launch(self, exec_path, args, file_to_open=None): | |||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| self.logger.debug("Launch environment: %s" % (required_env,)) | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| # TODO - only for Houdini version 21.0+ | ||||||||||||||||||||||||||||||||||
| enable_sg_menu = self.get_setting("enable_sg_menu", True) | ||||||||||||||||||||||||||||||||||
| if enable_sg_menu: | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| class MockEngine: | ||||||||||||||||||||||||||||||||||
| pass | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| mock_engine = MockEngine() | ||||||||||||||||||||||||||||||||||
| mock_engine.logger = self.logger | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| mock_engine._menu_name = "Flow Production Tracking" | ||||||||||||||||||||||||||||||||||
| if self.get_setting("use_short_menu_name", False): | ||||||||||||||||||||||||||||||||||
| mock_engine._menu_name = "FPTR" | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+139
to
+146
|
||||||||||||||||||||||||||||||||||
| pass | |
| mock_engine = MockEngine() | |
| mock_engine.logger = self.logger | |
| mock_engine._menu_name = "Flow Production Tracking" | |
| if self.get_setting("use_short_menu_name", False): | |
| mock_engine._menu_name = "FPTR" | |
| def __init__(self, logger, menu_name): | |
| self.logger = logger | |
| self._menu_name = menu_name | |
| menu_name = "Flow Production Tracking" | |
| if self.get_setting("use_short_menu_name", False): | |
| menu_name = "FPTR" | |
| mock_engine = MockEngine(self.logger, menu_name) |
Copilot
AI
Sep 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The import should be moved to the top of the file with other imports to follow Python import conventions and improve code readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TODO comment should specify what needs to be done when this workaround is no longer needed and include a reference to when/how this version check should be implemented.