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

Commit

Permalink
move venv_executable
Browse files Browse the repository at this point in the history
  • Loading branch information
Roulbac committed Aug 29, 2023
1 parent 81be706 commit dcf1f0f
Showing 1 changed file with 1 addition and 2 deletions.
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

0 comments on commit dcf1f0f

Please sign in to comment.