Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Update dynamic.py #80

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/genpy/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ def generate_dynamic(core_type, msg_cat):

# write the entire text to a file and import it (it will get deleted when tmp_dir goes - above)
tmp_file = tempfile.NamedTemporaryFile(suffix=".py",dir=tmp_dir,delete=False)
tmp_file.file.write(full_text.encode())
#tmp_file.file.write(full_text.encode())
Copy link
Member

Choose a reason for hiding this comment

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

Please remove this line since the next line replaces it. The git history will be sufficient.

tmp_file.file.write(full_text)
tmp_file.file.close()

# import our temporary file as a python module, which requires modifying sys.path
Expand Down