Skip to content

Commit

Permalink
Add suffix to wrapper generated
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovank authored Jan 29, 2024
1 parent aebbe49 commit e1c2e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cwhy/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def main():
args = parser.parse_args()

if args.wrapper:
with tempfile.NamedTemporaryFile(mode="w", delete=False) as f:
with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".py") as f:
f.write(wrapper(args))
# NamedTemporaryFiles are not executable by default.
# Set its mode to 755 here with an octal literal.
Expand Down

0 comments on commit e1c2e3a

Please sign in to comment.