Unverified Commit 3e59001e authored by Julien Veyssier's avatar Julien Veyssier
Browse files

finally multiprocess works on windows


Signed-off-by: default avatarJulien Veyssier <eneiluj@posteo.net>
parent 586ec3c1
Subproject commit 29a156acadc76980b65c11c33bac98ac8fae49a0
Subproject commit 61094506b720b242482d755032eec0a8eb1c68d4
......@@ -15,7 +15,7 @@
***************************************************************************/
"""
import os, shutil, sys, time
import os, shutil, sys, time, platform
from pathlib import Path
import tempfile, configparser
from zipfile import ZipFile
......@@ -45,6 +45,11 @@ from hrudelin.pluginUtils.tools import isWindows, isMac, which, prepareGrassEnv
from multiprocessing import cpu_count
import multiprocessing
if platform.system() == 'Windows':
path = os.path.abspath(os.path.join(sys.exec_prefix, '../../bin/pythonw3.exe'))
multiprocessing.set_executable(path)
sys.argv = [None]
print('fix in plugin %s'%os.path.abspath(os.path.join(sys.exec_prefix, '../../bin/pythonw3.exe')))
prepareGrassEnv()
from hrudelin.hrudelinCore.modules.hrudelin_1_init import main as main1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment