Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Python_Engine/Compute/Remove.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static partial class Compute
[Input("kernelName", "The name of the kernel to remove.")]
public static void RemoveKernel(string kernelName)
{
string kernelPath = Path.Combine(Query.DirectoryKernels(), kernelName);
string kernelPath = Path.Combine(Query.DirectoryKernels(), kernelName.ToLower());
if (Directory.Exists(kernelPath))
Directory.Delete(kernelPath, true);
}
Expand Down
2 changes: 1 addition & 1 deletion Python_Engine/Compute/VirtualEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static PythonEnvironment VirtualEnvironment(this PythonVersion version, s
}
};

process.StartInfo.Environment["PYTHONHOME"] = "";
process2.StartInfo.Environment["PYTHONHOME"] = "";

using (Process p = Process.Start(process2.StartInfo))
{
Expand Down
2 changes: 1 addition & 1 deletion Python_Engine/Query/VirtualEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static bool VirtualEnvironmentExists(string envName, PythonVersion python
[Output("kernelDirectory", "The path to the kernel directory.")]
public static string VirtualEnvironmentKernel(string envName)
{
return Path.Combine(Query.DirectoryKernels(), envName);
return Path.Combine(Query.DirectoryKernels(), envName.ToLower());
}

[Description("Get the path to the named BHoM Python virtual environment executable.")]
Expand Down