forked from extern/easydiffusion
Add support for Windows path names
This commit is contained in:
parent
a8fba8f3fb
commit
01368ac496
@ -363,7 +363,7 @@ function readUI() {
|
||||
}
|
||||
function getModelPath(filename, extensions)
|
||||
{
|
||||
if (filename.includes('/models/stable-diffusion/')) {
|
||||
if (filename.includes('/models/stable-diffusion/') || filename.includes('\\models\\stable-diffusion\\')) {
|
||||
let pathIdx = filename.lastIndexOf('/') // Linux, Mac paths
|
||||
if (pathIdx < 0) {
|
||||
pathIdx = filename.lastIndexOf('\\') // Windows paths.
|
||||
|
Loading…
Reference in New Issue
Block a user