I have a Tcl script stored in C:/ How do I run it from Python? (It is not write the Tcl script in python and then run it)
To clarify my question, firstly I have a Tcl-based programme called oommf, which is used for simulation. Here is a short introduction http://math.nist.gov/oommf/
I wrote some scripts by this programme and would like to use python to run a series of simulation and then extract the data to plot some graph. The script in in .mif format, and what I wish to do is
- Use python to generate the .mif script, every time with different parameter
- Use python to call the Tcl-based programme to run the script
- Save the data and use python to extract and plot the graph
The Tcl programme is in .tcl format.
The Tcl programme can also be run in command line. I heard that there was some way to simulate command line in python(in windows environment), but I don't know and if any one knows, it would help much.
(Sorry my prior knowledge for programming is only a bit in C, that's why my question might be ambiguous because I don't know how to describe it more clearly)