Execute a python/shell script from system verilog file

In reply to wasim.raza:
SystemVerilog does not care what you pass to $system(). It’s going to invoke a shell and execute the string. That string has to be valid for the OS/shell platform you are running the simulation on.

A better option would be to use the DPI layer to C and then call python from your C code.