Skip to content

Commit

Permalink
feat: Add prefix to tempfile for c-family languages
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoomen committed Nov 29, 2019
1 parent ca27745 commit e899e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/libclang.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def main():
lines.insert(current_line-1, normalized_expr)

# Save the lines to a temp file and parse that file.
fd, filename = tempfile.mkstemp('.{}'.format(ext), dir=workdir)
fd, filename = tempfile.mkstemp(dir=workdir, prefix='vim-doge-', suffix='.{}'.format(ext))
try:
with os.fdopen(fd, 'w') as tmp:
tmp.write('\n'.join(lines))
Expand Down

0 comments on commit e899e51

Please sign in to comment.