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
This commit is contained in:
Andrew Senetar 2017-07-21 21:41:49 -05:00
parent 84011fb46d
commit ed9ca45089
2 changed files with 8 additions and 1 deletions

2
.gitignore vendored
View File

@ -19,3 +19,5 @@ cocoa/autogen
/qt/*_rc.py
/help/*/conf.py
/help/*/changelog.rst
*.pyd

7
run.py
View File

@ -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