diff options
-rw-r--r-- | common/pybindings.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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 <fstream> +#include <signal.h> 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 } |