Skip to content

Commit e97bd89

Browse files
author
Martin D. Weinberg
committed
Fix typo in subprocess, again
1 parent 8cf1e13 commit e97bd89

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

conf.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@
3030
os.chdir(clone_dir)
3131
subprocess.run(["git", "checkout", branch])
3232
subprocess.run(["cp", "CMakeLists.txt", "CMakeLists.txt.orig"])
33-
fwrite = open("CMakeLists.txt", "w")
34-
pipe = subprocess.Popen(["sed", "-e", "s/VERSION 3.25/VERSION 3.22/", "CMakeLists.txt.orig"], stdout=fwrite)
35-
pipe.stdout.close()
36-
fwrite.close()
33+
command = ["sed", "-i", "-e", 's/VERSION 3.25/VERSION 3.22/g', "CMakeLists.txt"]
34+
result = subprocess.run(command, capture_output=True, text=True, check=True)
35+
36+
# Initialize submodules
37+
#
3738
os.chdir(doxy_dir)
3839
os.system("git submodule update --init --recursive")
3940

0 commit comments

Comments
 (0)