'Validate python code correcteness windows command line

I'm working on a tool that is auto generating python code (converting it from C#). I'm looking for a way to check if the generated code syntax is valid.

Is there a way to run a Python interpreter from C# and pass to it the generated files?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source