mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-23 19:31:38 +02:00
Use condabin's conda binary on linux and mac. Works around a bug in conda 4.14 (very old version)
This commit is contained in:
parent
72095a6d97
commit
02a2dce049
@ -60,10 +60,14 @@ conda = "conda"
|
|||||||
def locate_conda():
|
def locate_conda():
|
||||||
global conda
|
global conda
|
||||||
|
|
||||||
which = "where" if OS_NAME == "Windows" else "which"
|
if OS_NAME == "Windows":
|
||||||
conda = subprocess.getoutput(f"{which} conda")
|
conda = subprocess.getoutput("where conda")
|
||||||
conda = conda.split("\n")
|
conda = conda.split("\n")
|
||||||
conda = conda[0].strip()
|
conda = conda[0].strip()
|
||||||
|
else:
|
||||||
|
base_path = subprocess.getoutput("conda info --base")
|
||||||
|
conda = f"{base_path}/condabin/conda"
|
||||||
|
|
||||||
print("conda: ", conda)
|
print("conda: ", conda)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user