-
Notifications
You must be signed in to change notification settings - Fork 64
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
Adding new argument to generate_dynamic: tmp_dir_path and tmp_file_name #125
base: kinetic-devel
Are you sure you want to change the base?
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? |
For Issue: #124