From ed9ca450894dcc4109bc9f543952ec8436364e65 Mon Sep 17 00:00:00 2001 From: Andrew Senetar Date: Fri, 21 Jul 2017 21:41:49 -0500 Subject: [PATCH] Update run.py & .gitignore for windows - Update run.py to execute on windows as SIGQUIT is not available. - Update .gitignore to ignore the generate .pyd files Ref #300, #393 --- .gitignore | 2 ++ run.py | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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