Skip to content

Commit 81e0936

Browse files
authored
Merge pull request LykosAI#1443 from NeuralFault/comfyui-zluda-patchfix
Comfyui zluda patch fix
2 parents f777b9a + 9a0e51c commit 81e0936

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

StabilityMatrix.Core/Models/Packages/ComfyZluda.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ IPyInstallationManager pyInstallationManager
2727
"https://github.com/lshqqytiger/ZLUDA/releases/download/rel.5e717459179dc272b7d7d23391f0fad66c7459cf/ZLUDA-nightly-windows-rocm6-amd64.zip";
2828

2929
private const string HipSdkExtensionDownloadUrl = "https://cdn.lykos.ai/HIP-SDK-extension.7z";
30+
private const string VenvDirectoryName = "venv";
3031

3132
private Process? zludaProcess;
3233

@@ -202,6 +203,11 @@ private Dictionary<string, string> GetEnvVars(bool isInstall)
202203
["GIT"] = portableGitBin.JoinFile("git.exe"),
203204
};
204205

206+
if (isInstall)
207+
{
208+
envVars["VIRTUAL_ENV"] = VenvDirectoryName;
209+
}
210+
205211
if (envVars.TryGetValue("PATH", out var pathValue))
206212
{
207213
envVars["PATH"] = Compat.GetEnvPathWithExtensions(hipBinPath, portableGitBin, pathValue);

0 commit comments

Comments
 (0)