mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 07:34:27 -04:00
Merge pull request #1197 from overhacked/bin_version_env_fix
This commit is contained in:
commit
5b7ecfc872
1 changed files with 2 additions and 1 deletions
|
@ -690,7 +690,8 @@ def bin_version(binary: Optional[str]) -> Optional[str]:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
version_str = run([abspath, "--version"], stdout=PIPE, env={'LANG': 'C'}).stdout.strip().decode()
|
bin_env = os.environ | {'LANG': 'C'}
|
||||||
|
version_str = run([abspath, "--version"], stdout=PIPE, env=bin_env).stdout.strip().decode()
|
||||||
if not version_str:
|
if not version_str:
|
||||||
version_str = run([abspath, "--version"], stdout=PIPE).stdout.strip().decode()
|
version_str = run([abspath, "--version"], stdout=PIPE).stdout.strip().decode()
|
||||||
# take first 3 columns of first line of version info
|
# take first 3 columns of first line of version info
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue