-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix #484 : Make -fp both open file folder and preview #501
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
Conversation
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.
LGTM. Now I'm curious how is it that it worked for @naveen521kk ?
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 idea is to me good but what I don't like is that you are basically writting exactly what open_media_file is supposed to do.
Intstead, I think you should change open_media_file directly, and not touch main.
|
The thing is, we need to touch main. Lines 25 to 43 in 97de346
Let's call |
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.
You're right, Thanks for contributing !
SGTM !
Previously passing |
|
Opening both is what it was always meant to do 😅 |
List of Changes
I changed open_file_if_needed function in manim/main.py to fix #484
Motivation
There is a bug to be fixed.
Explanation for Changes
#484 (comment)
I changed the code so open_media_file runs twice if both -f and -p is given.
Testing Status
Tested on Windows, but future testing is highly recommended.
Further Comments
I'm open to other suggestions on how to fix this problem in other ways, but I hope I explained the core reason why this bug exists.
Acknowledgement