jonadsimon / wonder-words-generator

Generates WonderWords puzzles
Apache License 2.0
2 stars 0 forks source link

Make the MiniZinc code runnable from within Python #6

Closed jonadsimon closed 2 years ago

jonadsimon commented 2 years ago

This can be done in two ways:

(1) keep the program static but pass in all of the relevant parameters through the command line (2) generate a new program and run it within the command line

Command line can be called from within python using os.system or subprocess.run (more info)

jonadsimon commented 2 years ago

Wrote additional code to (1) parameterize the existing MiniZinc code, (2) generate MiniZinc data file from within Python, and (3) call the parameterized code with the generated data file from within Python using subprocess.Popen as per here