Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hru-delin-dev
hru-delin-qgis
Commits
3e59001e
Unverified
Commit
3e59001e
authored
Apr 22, 2020
by
Julien Veyssier
Browse files
finally multiprocess works on windows
Signed-off-by:
Julien Veyssier
<
eneiluj@posteo.net
>
parent
586ec3c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
hrudelinCore
@
61094506
Compare
29a156ac
...
61094506
Subproject commit
29a156acadc76980b65c11c33bac98ac8fae49a0
Subproject commit
61094506b720b242482d755032eec0a8eb1c68d4
hrudelin_dockwidget.py
View file @
3e59001e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment