Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5078 from golemfactory/mwu/b0.22.1-fix-benchmark
Browse files Browse the repository at this point in the history
Follow symlinks for sys.executable
  • Loading branch information
shadeofblue authored Jan 29, 2020
2 parents 3dc2e01 + 976a2ff commit 771d7c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/blender/benchmark/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import tempfile
from typing import Type

from os.path import dirname, join
from os.path import dirname, join, realpath
from os import close

from apps.blender.blenderenvironment import BlenderEnvironment, \
Expand All @@ -22,7 +22,8 @@ def __init__(self):
super(BlenderBenchmark, self).__init__()
self._normalization_constant = 9360
if hasattr(sys, 'frozen') and sys.frozen:
self.blender_task_path = join(dirname(sys.executable),
real_exe_path = realpath(sys.executable)
self.blender_task_path = join(dirname(real_exe_path),
'examples', 'blender')
else:
this_dir = pathlib.Path(__file__).resolve().parent
Expand Down

0 comments on commit 771d7c7

Please sign in to comment.