Browse Source
- Added more metadata to the image dialog info flyout - Added Restart button to console page - Model download location selector now searches all subfolders - Fixed Civitai model browser not showing images when "Show NSFW" is disabled - Fixed crash when Installed Workflows page is opened with no Workflows folder - Fixed progress bars not displaying properly during package installs & updatespull/629/head
JT
8 months ago
20 changed files with 205 additions and 47 deletions
@ -0,0 +1,21 @@
|
||||
using System; |
||||
using System.Threading.Tasks; |
||||
using StabilityMatrix.Core.Models.FileInterfaces; |
||||
using StabilityMatrix.Core.Models.PackageModification; |
||||
using StabilityMatrix.Core.Models.Progress; |
||||
using StabilityMatrix.Core.Python; |
||||
|
||||
namespace StabilityMatrix.Avalonia.Models.PackageSteps; |
||||
|
||||
public class UnpackSiteCustomizeStep(DirectoryPath venvPath) : IPackageStep |
||||
{ |
||||
public async Task ExecuteAsync(IProgress<ProgressReport>? progress = null) |
||||
{ |
||||
var sitePackages = venvPath.JoinDir(PyVenvRunner.RelativeSitePackagesPath); |
||||
var file = sitePackages.JoinFile("sitecustomize.py"); |
||||
file.Directory?.Create(); |
||||
await Assets.PyScriptSiteCustomize.ExtractTo(file); |
||||
} |
||||
|
||||
public string ProgressTitle => "Unpacking prerequisites..."; |
||||
} |
Loading…
Reference in new issue