()
| 32 | } |
| 33 | |
| 34 | export function getStableDiffusionDir(): string { |
| 35 | const configStr = appConfigManager.get(CONFIG_KEYS.appSetupConfig); |
| 36 | let stableDiffusionDir = ""; |
| 37 | if (configStr) { |
| 38 | try { |
| 39 | const config = JSON.parse(configStr); |
| 40 | stableDiffusionDir = config.stableDiffusionDir; |
| 41 | } catch(err: any) { |
| 42 | logger.error("parse config error" + err.message + ":" + err.stack); |
| 43 | } |
| 44 | } |
| 45 | return stableDiffusionDir; |
| 46 | } |
no test coverage detected