Skip to content

Commit

Permalink
fix: Make GET_VERSION_TIMEOUT settable via env vars (#22)
Browse files Browse the repository at this point in the history
* Make GET_VERSION_TIMEOUT settable by env vars

* Make GET_VERSION_TIMEOUT a global

* remove ,
  • Loading branch information
adriangb authored Jul 15, 2023
1 parent 4a95cde commit ebe5805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/findpython/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import dataclasses as dc
import logging
import os
import subprocess
from functools import lru_cache
from pathlib import Path
Expand All @@ -11,7 +12,7 @@
from findpython.utils import get_binary_hash

logger = logging.getLogger("findpython")
GET_VERSION_TIMEOUT = 5
GET_VERSION_TIMEOUT = float(os.environ.get("FINDPYTHON_GET_VERSION_TIMEOUT", 5))


@lru_cache(maxsize=1024)
Expand Down

0 comments on commit ebe5805

Please sign in to comment.