diff --git a/common/pybindings.cc b/common/pybindings.cc index 761d6571..10bbab7b 100644 --- a/common/pybindings.cc +++ b/common/pybindings.cc @@ -24,6 +24,7 @@ #include "nextpnr.h" #include +#include NEXTPNR_NAMESPACE_BEGIN @@ -157,6 +158,7 @@ void init_python(const char *executable) std::string perror_str = parse_python_exception(); std::cout << "Error in Python: " << perror_str << std::endl; } + signal(SIGINT, SIG_DFL); #endif }