Skip to content

hides subprocess windows on os.system = "nt"#1148

Merged
joernu76 merged 3 commits intoOpen-MSS:stablefrom
ReimarBauer:i1145
Aug 13, 2021
Merged

hides subprocess windows on os.system = "nt"#1148
joernu76 merged 3 commits intoOpen-MSS:stablefrom
ReimarBauer:i1145

Conversation

@ReimarBauer
Copy link
Member

No description provided.

@ReimarBauer
Copy link
Member Author

I verified these changes on my guacamole windows MSS 5.0 installation by copying the changed utils.py to the installed location.
If you have an option to try it out before the next release I'm interested in Feedback.

mslib/utils.py Outdated
UR.define("pptv = 1e-12 fraction")


def windows_subprocess_startupinfo():
Copy link
Member

Choose a reason for hiding this comment

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

you could simplify the code quite a bit by returning "None" for non-"nt" OS and always supplying it as an argument.
Alternatively, we could shim the subprocess.run command (https://en.wikipedia.org/wiki/Shim_(computing))

Functionally this is fine.

Copy link
Member Author

@ReimarBauer ReimarBauer Aug 13, 2021

Choose a reason for hiding this comment

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

I first thought I just replace it by EasyProcess, https://github.com/ponty/EasyProcess
But that is an API change and it won't go into 5.0.1. I packaged this for conda-forge for pyvirtualdisplay as a dependency.

That this happens now only on windows desktop start is the reason I choosed that filter. But anyway if it breaks after next installation something else we get faster a 5.0.2.

@joernu76 joernu76 self-requested a review August 13, 2021 13:50
@joernu76 joernu76 merged commit 1fe6977 into Open-MSS:stable Aug 13, 2021
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.

Starting MSS under Windows opens confusing mamba and/or conda windows

2 participants