Skip to content

Commit

Permalink
Merge pull request #2 from shaurz/v1.4.0
Browse files Browse the repository at this point in the history
V1.4.0
  • Loading branch information
ljmccarthy committed May 18, 2016
2 parents 2ae9342 + 36c5a35 commit 46485f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"mswsock.dll",
"powrprof.dll",
"UxTheme.dll",
"CRYPT32.dll",
]

def run(*args, **kwargs):
Expand Down
15 changes: 9 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/usr/bin/env python2

import sys, os, getopt, traceback, warnings
import sys

if sys.platform == "win32":
import ctypes
SEM_FAILCRITICALERRORS = 1
ctypes.windll.kernel32.SetErrorMode(SEM_FAILCRITICALERRORS)
ctypes.windll.user32.SetProcessDPIAware()

import os, getopt, traceback, warnings

if not hasattr(sys, "frozen"):
module_dir = os.path.dirname(os.path.realpath(__file__))
Expand Down Expand Up @@ -138,11 +146,6 @@ def Shutdown(self):
self.log_file.flush()

def main():
if sys.platform == "win32":
import win32api
SEM_FAILCRITICALERRORS = 1
win32api.SetErrorMode(SEM_FAILCRITICALERRORS)

if sys.platform == "darwin" and hasattr(sys, "frozen"):
args = []
else:
Expand Down

0 comments on commit 46485f0

Please sign in to comment.