Commit 3522896b authored by Federico G. Schwindt's avatar Federico G. Schwindt

Create the temporary files in the same dir

Rename will fail across different mount points.
parent f962730f
......@@ -914,10 +914,10 @@ def runmain(inputvcc, rstdir, outputprefix):
#######################################################################
# Parsing done, now process
#
fd_cfile, fn_cfile = mkstemp()
fd_cfile, fn_cfile = mkstemp(dir='.')
cfile = fdopen(fd_cfile, "w")
fd_headerfile, fn_headerfile = mkstemp()
fd_headerfile, fn_headerfile = mkstemp(dir='.')
headerfile = fdopen(fd_headerfile, "w")
write_c_file_warning(cfile)
......@@ -943,7 +943,7 @@ def runmain(inputvcc, rstdir, outputprefix):
headerfile.close()
for suf in ("", ".man"):
fd, fn_fp = mkstemp()
fd, fn_fp = mkstemp(dir='.')
fp = fdopen(fd, "w")
write_rst_file_warning(fp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment