diff --git a/flojoy/flojoy_node_venv.py b/flojoy/flojoy_node_venv.py index c949675..ba9da65 100644 --- a/flojoy/flojoy_node_venv.py +++ b/flojoy/flojoy_node_venv.py @@ -296,7 +296,6 @@ def decorator(func, *, pip_dependencies=pip_dependencies, verbose=verbose): "".join(sorted(pip_dependencies)).encode() ).hexdigest()[:8] venv_path = os.path.join(venv_cache_dir, f"{pip_dependencies_hash}") - venv_executable = _get_venv_executable_path(venv_path) logger = logging.getLogger(func.__name__) if verbose: logger.setLevel(logging.INFO) @@ -314,7 +313,7 @@ def wrapper(*args, **kwargs): f"Waiting for pip install to finish for virtual environment of {func.__name__} at {venv_path}..." ) thread.join() - venv_executable = os.path.realpath(venv_executable) + venv_executable = _get_venv_executable_path(venv_path) # Check if the thread threw an exception if PipInstallThread._exceptions[thread.name] is not None: # Clean up the other threads (and the processes they spawned)