mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-01-11 15:32:50 +00:00
fix
This commit is contained in:
parent
e16f61bc19
commit
d5ee445164
@ -82,9 +82,9 @@ def run_script_in_env(env_name, script_path, cwd=None):
|
|||||||
|
|
||||||
# Activate the Conda environment
|
# Activate the Conda environment
|
||||||
if platform.system()=="Windows":
|
if platform.system()=="Windows":
|
||||||
python_path = Path(sys.executable).parent.parent/"miniconda3"/"condabin"/"python"
|
python_path = Path(sys.executable).parent.parent/"miniconda3"/"condabin"/"conda"
|
||||||
else:
|
else:
|
||||||
python_path = Path(sys.executable).parent.parent/"miniconda3"/"bin"/"python"
|
python_path = Path(sys.executable).parent.parent/"miniconda3"/"bin"/"conda"
|
||||||
# Activate the Conda environment
|
# Activate the Conda environment
|
||||||
subprocess.Popen(f'{python_path} activate {env_name} && {script_path}', shell=True, cwd=cwd)
|
subprocess.Popen(f'{python_path} activate {env_name} && {script_path}', shell=True, cwd=cwd)
|
||||||
#run_command(Commands.RUN, "-n", env_name, str(script_path), cwd=cwd)
|
#run_command(Commands.RUN, "-n", env_name, str(script_path), cwd=cwd)
|
||||||
|
Loading…
Reference in New Issue
Block a user