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:
3
kcc.py
3
kcc.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user