I am making a simple code to automate my tedious task. I have installed ubuntu in wsl. I have used tkinter, and used a button to execute few commands in bash.
os.chdir(root.destiny)
bash = 'blockMesh'
pipefile = open('output', 'w')
retcode = call(bash, shell=True, stdout=pipefile)
pipefile.close()
os.remove('output')
os.chdir("..")
Below is the error that i am facing: ('blockMesh' is not recognized as an internal or external command, operable program or batch file.)
Elaborating: I am trying to create a mesh, changes is made using editing files in one of the folder. I need to run the a command in that particular folder 'blockMesh' which will run few codes to create a mesh.
Can someone help me with the same. I tried making 'bash' to 'cmd' in the code but didn't work. Need a helping hand.
Thanks