diff --git a/.gitignore b/.gitignore index f66b475c..5f02f9c6 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,5 @@ cocoa/autogen /qt/*_rc.py /help/*/conf.py /help/*/changelog.rst + +*.pyd diff --git a/run.py b/run.py index 6dfcf752..297a5bd8 100644 --- a/run.py +++ b/run.py @@ -20,7 +20,12 @@ from qt import dg_rc from qt.platform import BASE_PATH from core import __version__, __appname__ -from signal import signal, SIGINT, SIGTERM, SIGQUIT +# SIGQUIT is not defined on Windows +if sys.platform == 'win32': + from signal import signal, SIGINT, SIGTERM + SIGQUIT = SIGTERM +else: + from signal import signal, SIGINT, SIGTERM, SIGQUIT global dgapp dgapp = None