mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-03 08:36:12 +02:00
Attempt 2 at fixing conda basepath
This commit is contained in:
parent
02a2dce049
commit
3ff9d9c3bb
@ -65,7 +65,12 @@ def locate_conda():
|
||||
conda = conda.split("\n")
|
||||
conda = conda[0].strip()
|
||||
else:
|
||||
base_path = subprocess.getoutput("conda info --base")
|
||||
if "CONDA_BASEPATH" in os.environ:
|
||||
base_path = os.environ.get["CONDA_BASEPATH"]
|
||||
print("basepath", base_path)
|
||||
else:
|
||||
base_path = subprocess.getoutput("conda info --base")
|
||||
|
||||
conda = f"{base_path}/condabin/conda"
|
||||
|
||||
print("conda: ", conda)
|
||||
|
Loading…
x
Reference in New Issue
Block a user