Please tell me how to edit this code to run fds on python?
import os
from subprocess import Popen, PIPE
base = (os.getcwd())
string = f"{base}/1"
os.chdir(string)
cmd = 'cmd.exe'
p = Popen(cmd, stdin=PIPE, stdout=PIPE, bufsize=0, shell=True)
p.stdin.write(rb"fdsinit\ D:\Python\Project\Repositories\Project_Clicker\Run_FDS\1")
p.stdin.write(b"fds_local -p 2 -o 1 b_1.fds")
cc = p.stdin.close()
vv = p.wait()
File.fds is located in the folder D:\Python\Project\Repositories\Project_Clicker\Run_FDS\1
--
You received this message because you are subscribed to the Google Groups "FDS and Smokeview Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fds-smv+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fds-smv/6de723b0-43d9-4ad5-b7c2-5bc13b0bdab1n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fds-smv/de2219f5-3d0a-4626-8b51-8d756dcdf30bn%40googlegroups.com.