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

move venv_executable #88

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions flojoy/flojoy_node_venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
Loading