-
Notifications
You must be signed in to change notification settings - Fork 65
Adding new argument to generate_dynamic: tmp_dir_path and tmp_file_name #125
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
src/genpy/dynamic.py
Outdated
tmp_file.file.close() | ||
if tmp_dir_path: | ||
# Create a temporary directory with specified path | ||
tmp_dir = os.mkdir(tmp_dir_path) |
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 should probably handle the case that the directory already exists.
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.
My thought process was that if an output_file
was given, it would overwrite the file if it exists. However, if the file does not exist, it would create a file at the given output_file
path.
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.
By just removing this line it doesn't handle the case anymore where the directory doesn't exist.
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.
By just removing this line it doesn't handle the case anymore where the directory doesn't exist.
@jimwelagu This comment is still pending.
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.
@jimwelagu Friendly ping.
@jimwelagu Friendly ping. |
Made some changes per your requests. |
@dirk-thomas Friendly ping. |
@jimwelagu Are you still interested in this PR and willing to address the above pending feedback? |
Thank you for the PR! Unfortunately I don't think we should merge this one. ROS Noetic will reach end-of-life on May 31st, 2025. Every change comes with a risk of introducing regressions, and there isn't much time left to fix them. I'm closing pull requests that add features so that the remaining time is allocated towards bug fixes and compatibility with newer Ubuntu distros. |
For Issue: #124