blob: 4c74a4a1690e15536b113d049df0fb0ddf0931f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
diff -Naur BlendLuxCore-blendluxcore_v2.2/draw/viewport.py BlendLuxCore-blendluxcore_v2.2-patch/draw/viewport.py
--- BlendLuxCore-blendluxcore_v2.2/draw/viewport.py 2019-09-30 12:40:01.000000000 +0200
+++ BlendLuxCore-blendluxcore_v2.2-patch/draw/viewport.py 2019-11-28 08:19:28.433741235 +0100
@@ -8,6 +8,7 @@
from ..bin import pyluxcore
from .. import utils
from ..utils import pfm
+from shutil import which
NULL = 0
@@ -72,8 +73,7 @@
self._albedo_file_path = self._make_denoiser_filepath("albedo")
self._normal_file_path = self._make_denoiser_filepath("normal")
self._denoised_file_path = self._make_denoiser_filepath("denoised")
- current_dir = os.path.dirname(os.path.realpath(__file__))
- self._denoiser_path = os.path.join(os.path.dirname(current_dir), "bin", "denoise")
+ self._denoiser_path = which('denoise')
if platform.system() == "Windows":
self._denoiser_path += ".exe"
self._denoiser_process = None
|