Skip to content

Commit

Permalink
get_returnn_python_exe, allow custom hash_overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed May 7, 2024
1 parent 0737afd commit aa81b8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions users/zeyer/tools_paths.py
Expand Up @@ -98,11 +98,10 @@ def get_sctk_binary_path() -> tk.Path:
return tk.Path(sctk_path, hash_overwrite=hash_overwrite)


def get_returnn_python_exe() -> tk.Path:
def get_returnn_python_exe(*, hash_overwrite: str = "DEFAULT_RETURNN_PYTHON_EXE") -> tk.Path:
"""
RETURNN Python executable
"""
hash_overwrite = "DEFAULT_RETURNN_PYTHON_EXE"
path = getattr(gs, "RETURNN_PYTHON_EXE", None)
if path is None:
path = sys.executable
Expand Down

0 comments on commit aa81b8e

Please sign in to comment.