-
Notifications
You must be signed in to change notification settings - Fork 59
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
Changed to use list instead of string for subprocess command. #214
Conversation
@j-emils Thanks for the fix |
@j-emils Thanks for the fix |
I came to report this until I realized it was fixed in master branch already. Thanks @j-emils for the fix. A proper resolution would be to create the list in the first place rather than concatenate strings then split, but oh well. Also, I believe the list should be split one step further to separate e.g. See for instance Popen docs: Popen(["/usr/bin/git", "commit", "-m", "Fixes a bug."]) although I can't comment on the consequences of not doing it. I did it like this as a test but really, it would be more sensible to build the list in the first place. cmd = sum([r.split("=") for r in cmd.split()], []) @arun3688 considering the fixes that have been merged since last release, a new release would be greatly appreciated. Thanks! |
@j-emils do you mean you'd like to get this fix in OpenModlica 1.23.x? |
In case there is a misunderstanding, I was kindly asking for a OMPython
v3.5.2 release to get the latest fixes.
Thanks.
|
@j-emils A new release has been made with v.3.5.2 and also the pip package has been updated with the new release |
Thank you so much!
|
@lafrech, I agree that a more thorough solution would be to create the list from the get go. However, the focus of this fix was to resolve the immediate issue of the code not working. In the future there is a need for refactoring the code in my opinion. |
You may open another ticket for that, so we don't forget about it. |
Related Issues
Purpose
Cannot execute the simulate method on linux.
Approach
Adapting subprocess input.