Skip to content

Commit ae99f83

Browse files
committed
Python: Modify script to get path right
1 parent 0e91531 commit ae99f83

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Utilities/Python/scripts/make_smv_images.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import pandas as pd
55
import os
66
import subprocess
7+
import shutil
78

89
outdir = '../../Verification/'
910
original_dir = os.getcwd()
@@ -13,8 +14,10 @@
1314
folder = df[0].values
1415
case = df[1].values
1516

17+
smokeview_path = shutil.which('smokeview')
18+
1619
for i in range(len(folder)):
1720
os.chdir(outdir + folder[i])
18-
subprocess.run(['smokeview','-runscript',case[i]])
21+
subprocess.run([smokeview_path,'-runscript',case[i]])
1922
os.chdir(original_dir)
2023

0 commit comments

Comments
 (0)