-
Notifications
You must be signed in to change notification settings - Fork 57
fix: Pop up window for launch fluent. #4670
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: main
Are you sure you want to change the base?
Changes from all commits
39584ff
e50396b
e452bbe
aadd246
4b85d7f
81ed70a
6834ba3
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Pop up window for launch fluent. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -236,14 +236,7 @@ def __init__( | |
| ) | ||
|
|
||
| if is_windows(): | ||
| if ( | ||
| pyfluent.config.launch_fluent_stdout | ||
| or pyfluent.config.launch_fluent_stderr | ||
| ): | ||
| self._launch_cmd = self._launch_string | ||
| else: | ||
| # Using 'start.exe' is better; otherwise Fluent is more susceptible to bad termination attempts. | ||
| self._launch_cmd = 'start "" ' + self._launch_string | ||
| self._launch_cmd = self._launch_string | ||
|
||
| else: | ||
| if self.argvals["ui_mode"] not in [UIMode.GUI, UIMode.HIDDEN_GUI]: | ||
| # Using nohup to hide Fluent output from the current terminal | ||
|
|
@@ -257,7 +250,6 @@ def __call__(self): | |
| return self._launch_string, self._server_info_file_name | ||
| try: | ||
| logger.debug(f"Launching Fluent with command: {self._launch_cmd}") | ||
|
|
||
| process = subprocess.Popen(self._launch_cmd, **self._kwargs) | ||
|
|
||
| try: | ||
|
|
||
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.
This is the fix without which the transcript will be printed on the command window in which PyFluent script is being run, thus making it unusable.
Uh oh!
There was an error while loading. Please reload this page.
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.
For me, the issue is resolved if I add the
subprocess.CREATE_NO_WINDOWand remove thestart.exewithout changing in theshellparameter. I'll update the PR after testing different modes.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.
Thanks @mkundu1.