1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 09:46:25 +00:00

Disabled old multiprocessing hack

This commit is contained in:
Paweł Jastrzębski
2017-10-14 22:10:31 +02:00
parent 7524c50657
commit aa978ab246
5 changed files with 10 additions and 6 deletions

3
kcc.py
View File

@@ -34,6 +34,7 @@ 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):
@@ -50,7 +51,7 @@ elif sys.platform.startswith('win'):
else:
os.putenv('_MEIPASS2', '')
forking.Popen = _Popen
'''
if getattr(sys, 'frozen', False):
os.chdir(os.path.dirname(os.path.abspath(sys.executable)))
else: