diff options
author | Paweł Jastrzębski <pawelj@iosphe.re> | 2017-11-02 10:28:43 +0100 |
---|---|---|
committer | Paweł Jastrzębski <pawelj@iosphe.re> | 2017-11-02 10:28:43 +0100 |
commit | a695a4c151765e983126a6037c589aa91452e554 (patch) | |
tree | 80303dc7c4f601f2bef69157f711ec8394ce9a80 /kcc.py | |
parent | Updated build enviroment (diff) | |
download | kcc-a695a4c151765e983126a6037c589aa91452e554.tar.gz kcc-a695a4c151765e983126a6037c589aa91452e554.tar.bz2 kcc-a695a4c151765e983126a6037c589aa91452e554.zip |
Code cleanup
Diffstat (limited to 'kcc.py')
-rwxr-xr-x | kcc.py | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/kcc.py b/kcc.py index 618c2cb..a6020d9 100755 --- a/kcc.py +++ b/kcc.py @@ -34,24 +34,6 @@ if sys.platform.startswith('darwin'): else: os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/osx/:' + os.environ['PATH'] elif sys.platform.startswith('win'): - ''' - import multiprocessing.popen_spawn_win32 as forking - - class _Popen(forking.Popen): - def __init__(self, *args, **kw): - if hasattr(sys, 'frozen'): - # noinspection PyUnresolvedReferences,PyProtectedMember - os.putenv('_MEIPASS2', sys._MEIPASS) - try: - super(_Popen, self).__init__(*args, **kw) - finally: - if hasattr(sys, 'frozen'): - if hasattr(os, 'unsetenv'): - os.unsetenv('_MEIPASS2') - else: - os.putenv('_MEIPASS2', '') - forking.Popen = _Popen - ''' if getattr(sys, 'frozen', False): os.chdir(os.path.dirname(os.path.abspath(sys.executable))) else: @@ -61,7 +43,7 @@ elif sys.platform.startswith('win'): if getattr(sys, 'frozen', False): try: import kindlecomicconverter.sentry - except: + except ImportError: pass from multiprocessing import freeze_support |